Bluehost.com Web Hosting $6.95

undefined variables in php

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2004
RossBruniges
 
Posts: n/a
Default undefined variables in php

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
  #2 (permalink)  
Old 03-05-2004
Gerard2Canada
 
Posts: n/a
Default Re: undefined variables in php

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:31 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0