Passing Variables in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cypherzeros
Forum Newbie
Posts: 3
Joined: Fri Aug 09, 2002 9:37 pm

Passing Variables in PHP

Post by cypherzeros »

I've created a page that passes a variable to the next page via URL. The code is fine and the page work perfectly on the production server, but for some reason I can't get it to pass the variable on my test server here at home.

Does anyone have any idea why? Is there something that I need to turn on/enable in the php server config file?

I just recently installed the test server. I've always worked from a test directory on the production box, so I'm not that familiar with php server setup/config.

Anyone got any ideas? Any help would be much appreciated. Thanks.

-cz
lc
Forum Contributor
Posts: 188
Joined: Tue Apr 23, 2002 6:45 pm
Location: Netherlands

Post by lc »

Well you probably developed the script on a server that has register globals set on and the one you then put it on has it set off.

I think this sticky post deals with your issue: http://www.devnetwork.net/forums/viewtopic.php?t=511
cypherzeros
Forum Newbie
Posts: 3
Joined: Fri Aug 09, 2002 9:37 pm

Post by cypherzeros »

Thanks alot, man. I think this is it. I knew it was a config option, just didn't know which one to look for, since I wasn't seeing anything with an obvious label.

Thanks again.

-cz
cypherzeros
Forum Newbie
Posts: 3
Joined: Fri Aug 09, 2002 9:37 pm

Post by cypherzeros »

That was the problem. Thanks. :)

-cz
Post Reply