This is a discussion on undefined variables in php within the Windows Web Servers forums, part of the Web Server and Related Forums category; I have set up apache version 2.0.48 as a 'localhost' with php version 4.3.4 and all ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have set up apache version 2.0.48 as a 'localhost' with php version
4.3.4 and all seemed to be wroking ok, i have run the phpinfo() fucntion and the proper page comes up. however when running php scripts from a html form whatever any variable is they come up as undefined, a example of the error is : Notice: Undefined variable: firstName in C:\Program Files\Apache Group\Apache2\htdocs\phpWork\chapter3\handleForm.p hp on line 10 i have used the post and get methods and the results are the same even though i can see the variables have been passed to the page via the URL when using get, its just really frustrating as ive also tested it on someones online server and it works!!! what it is i need to change??, im assuming i've got a prob with my server configuration but i cant find anything out there to help any help would be greatly accpreciated, thanks everyone ross bruniges |
|
|||
|
rossbruniges10@yahoo.co.uk (RossBruniges) wrote in message news:<cf3d751b.0402250136.39a483a2@posting.google. com>...
> I have set up apache version 2.0.48 as a 'localhost' with php version > 4.3.4 and all seemed to be wroking ok, i have run the phpinfo() > fucntion and the proper page comes up. > > however when running php scripts from a html form whatever any > variable is they come up as undefined, a example of the error is : > > Notice: Undefined variable: firstName in C:\Program Files\Apache > Group\Apache2\htdocs\phpWork\chapter3\handleForm.p hp on line 10 > > i have used the post and get methods and the results are the same even > though i can see the variables have been passed to the page via the > URL when using get, its just really frustrating as ive also tested it > on someones online server and it works!!! > > what it is i need to change??, im assuming i've got a prob with my > server configuration but i cant find anything out there to help > > any help would be greatly accpreciated, thanks everyone > > ross bruniges Dear Ross, I solved the problem on my Windows-XP PC with Apache 2.0: Instead of using G:\PHP\... I use G:\php\... Aparently Apache has difficulties passing parameters to PHP when it is installed in a uppercase named directory. After my change everything worked fine. (Dont forget to change the httpd.conf file of Apache en restart the server) Kind regards, Gerard |