FATAL ERROR: register_globals is disabled in php.ini

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
lakshkhamesra
Forum Newbie
Posts: 7
Joined: Fri Mar 26, 2010 5:54 pm

FATAL ERROR: register_globals is disabled in php.ini

Post by lakshkhamesra »

I enabled it.

I even enabled allow_url_fopen

Still it shows this error.

Here is the link - http://lakshwebdesign.com/clients/johnn ... /index.php

Can anyone help plz?
cpetercarter
Forum Contributor
Posts: 474
Joined: Sat Jul 25, 2009 2:00 am

Re: FATAL ERROR: register_globals is disabled in php.ini

Post by cpetercarter »

You really, really should not be running code which relies on register_globals being enabled. It is a major security risk.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: FATAL ERROR: register_globals is disabled in php.ini

Post by John Cartwright »

Yes, it should never be used and is deprecated. However, if you need to enable it (for reasons beyond me) you need to modify your php.ini. The location of your loaded php.ini can be used by running phpinfo(). Otherwise, depending on your server, you can enable it by .htaccess by adding the following files

Code: Select all

php_value register_globals on
..you've been warned.
Post Reply