I'm continuing someone elses work, and he just pulls a $page variable out of nowhere. The url is blaah.com?page=some
i'd like not to change much of his code at beginning. What setting i need to change in my php.ini to adapt to this awfull practise!
Auto $_GET
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
turn register globals ON (not smart). Alternatively you could simply add
Code: Select all
extract($_GET);-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
-
Shendemiar
- Forum Contributor
- Posts: 404
- Joined: Thu Jan 08, 2004 8:28 am
Thanks, i'll use that later when starting to alter the stuff...Jcart wrote:turn register globals ON (not smart). Alternatively you could simply addCode: Select all
extract($_GET);