Problems with the Windows version of XAMPP, questions, comments, and anything related.
by danJ » 22. October 2006 23:27
I installed Xampp, but $_GET['x'] does NOT work!
Anyone knows how to fix it?
Thanks
Dan
-
danJ
-
- Posts: 2
- Joined: 22. October 2006 17:02
by Wiedmann » 22. October 2006 23:45
Correct your script...
-
Wiedmann
- AF Moderator
-
- Posts: 17102
- Joined: 01. February 2004 12:38
- Location: Stuttgart / Germany
by danJ » 23. October 2006 12:38
Wiedmann wrote:Correct your script...
How to correct that?
It runs fine on a real server, but not on my localhost!?!
-
danJ
-
- Posts: 2
- Joined: 22. October 2006 17:02
by Wiedmann » 23. October 2006 13:30
How to correct that?
Sorry but I don't know your current code. But if "$_GET['x']" does not work, your code is not correkt. (You can also look into the PHP manual about "external variables").
-
Wiedmann
- AF Moderator
-
- Posts: 17102
- Joined: 01. February 2004 12:38
- Location: Stuttgart / Germany
by DrizZ » 25. October 2006 09:36
Make a file in your htdocs folder and rename it to "test.php"
put this code in test.php:
- Code: Select all
<?
$x = $_GET[x];
print "$x";
?>
then safe and go to
http://localhost/test.php
if it not works, u've installed xampp wrong
-
DrizZ
-
- Posts: 11
- Joined: 05. August 2006 04:01
by cj_nza » 27. October 2006 23:00
This code and the way you call it would be a very bad way of testing if XAMPP is installed correctly.
You need to provide a value for 'x' in your GET request/url.
Thus you should use
http://localhost/test.php?x=Working
Secondly the name of a member of an array should be within quotation marks for example $x = $_GET['x']
-
cj_nza
-
- Posts: 53
- Joined: 06. September 2005 11:49
by DrizZ » 28. November 2006 22:50
Yea.. sorry..
Thanks for your post with my error
-
DrizZ
-
- Posts: 11
- Joined: 05. August 2006 04:01
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 102 guests