Click to See Complete Forum and Search --> : PHP 4/IIS 5.0 Varaible Problem


Aiwrtcode
09-28-2002, 03:46 PM
Hey,

I have a server running IIS 5.0 and PHP 4 and varaibles can not be set via the URL. I have checked the code on my computer (Apache/PHP4) and another web server (BSD) and it works. When I try it on my server I get a undefined varaible error. I am setting it using index.php?bob=blah

Any ideas?

dotwebbie
09-30-2002, 11:49 AM
Okay. What version of PHP is being used for each machine? Is register_globals off on one and on for the other?

Aiwrtcode
09-30-2002, 07:02 PM
I have PHP 4 on my computer and the other server that I tested on that worked I think has PHP 3. Not sure about register_globals, but I'll look into that.

dotwebbie
10-01-2002, 10:48 AM
Then that may be the problem. :) If using it on PHP3 works and PHP4 doesn't, register_globals is more than likely on.

Aiwrtcode
10-01-2002, 08:32 PM
That fixed it, Thanks.

Any idea why FTP wouldnt work? :)

dotwebbie
10-01-2002, 09:09 PM
I didn't know you were having trouble with FTP.

Aiwrtcode
10-01-2002, 09:11 PM
:D

I figured it out. But thanks anyway.

dotwebbie
10-01-2002, 09:43 PM
Ummm. Okay . . . :D