Forum Moderators: coopster

Message Too Old, No Replies

Parameter value not getting posted

         

flycast

1:30 am on Jun 17, 2007 (gmt 0)

10+ Year Member



I have a site running on a lamp server that I am doing maintenance on for someone. I have set up a temporary subdomain on my site. There is a page that uses URL's like this:

www.thesite.com/news.php?article=5

The variable $article does not have a value in PHP. The pages works on the production server but not on the testing server. Is this an Apache thing or a PHP thing?

flycast

1:58 am on Jun 17, 2007 (gmt 0)

10+ Year Member



Resolved - Brain issue - register_globals was off.

In PHP register_globals as set on as default. The default for register_globals was changed to off in 4.2.0. To deal with this you can add:

"php_flag register_globals on"

to your .htaccess file or look for your variable in $_GET['yourVariableName']. Please read about it here if you are having this problem.

[php.net...]

Habtom

4:55 am on Jun 17, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>> register_globals was off

Don't you think register globals to just remain off [webmasterworld.com] for different security reasons.

Habtom