Variables in PHP 4.3.6 issue or feature?

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
anotherJean
Forum Newbie
Posts: 22
Joined: Tue Mar 30, 2004 3:59 pm

Variables in PHP 4.3.6 issue or feature?

Post by anotherJean »

Hi,

recently I've compiled PHP 4.3.6 and somehow my scripts are not working anymore. well to find out why they've stopped to work drove me crazy :twisted:
afterall it seems that it's not possible anymore to get data followed way :
output: no output


this works like a charm:
http://localhost/test.php?test=one

<? print $_GET['test']; ?>
output:one


my question, what the heck happened? is there sth in php.ini to setup? did I just forgot to configure --with sth when compiling? or is this dropped by php in 4.3.6?
:?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

register_globals has been turned off by default since 4.2.0 I think...
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

The way you used to use request variables is deprecated nowadays, but still allowed. If you want old way to work, you need to set register_globals to on in your php.ini.
anotherJean
Forum Newbie
Posts: 22
Joined: Tue Mar 30, 2004 3:59 pm

Post by anotherJean »

I still need to stick with register_globals on just because of compatibility, you helped me a lot , thank you very much feyd and Weirdan , that was exactly my problem :D
Post Reply