Tommy D’s Sexy Blog

TagLine Here

PHP Tips, register_globals

Filed under: PHP Tips — Tommy D. at 10:33 am on Thursday, June 30, 2005

Do you have scripts which suddenly stopped working after you upgraded your PHP version? Chances are, the scripts assumed that register_globals was on (the default for quite awhile) and now that register_globals is disabled by default, the scripts no longer recognize incoming post/get/cookie variables. Add the following lines to your scripts to get them functioning again:

extract($_REQUEST);

extract($_COOKIE);

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

 

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin