Can I change register_globals setting in php.ini

indirav - October 13, 2006 - 16:09

I'm part of a not-for-profit organization called Janaagraha based in Bangalore, India. We've just recently developed our website www.janaagraha.org using Drupal and hosted it on Siteground. We had outsourced the development of our Volunteer Management System to another company which developed it using core PHP. The Volunteer Management System used to work on our old website hosted on Yahoo! but has stopped working since we moved it to Siteground. One suspicion we've is that the variable register_globals is "off" in the php.ini file on Siteground and that needs to be "on". Is it possible for me to set it? If so, how?

Thanks,
Indira

Database is MySQL in both

indirav - October 13, 2006 - 16:15

Both the Volunteer Management System and our Janaagraha website are using MySQL as the database.

Thanks,
Indira

register_globals should be off

bohemicus - October 27, 2006 - 12:20

Register globals should be off (for security reasons, I'm told). If, for some reason, you need them on, put the following in your .htaccess file: php_flag register_globals on or register_globals = true in your php.ini file.

Thanks

kirikoo - January 13, 2008 - 19:14

Couldn't find php.ini in my Drupal directory, so created one & added this single line:

register_globals = false

(in my case register_globals was on & I needed it off for 5.6 upgrade)

Pay attention!! This man is a genius!

dangerqc - January 21, 2008 - 02:00

Kirikoo is a genius.
It is so simple it is brilliant.
It works, and for those of you on web hosts... so am I!

Woo Hoo!

You're Welcome!

kirikoo - January 31, 2008 - 13:04

LoL thanks :D Happy that's solved your probs :)

Just an addition, I had some mysql problems because of the file I added & after doing some research on the error message I was getting I added a 2nd line to it so now php.ini contains this:

register_globals = false
memory_limit = 40M

seems 40M is the max my host allow, it maybe different with other hosts, I precise also that my drupal is installed in a subdirectory under public_html, good luck.

seconded!

Huitalk - January 23, 2008 - 02:06

sorted my D5.6 upgrade problem!

- Connecting Language Learners
www.huitalk.com

Fixed?

_doc - June 22, 2007 - 07:20

Hi Indira - did the solution fix your problem?

I checked the site - which browser is it best viewed on?

Thanks!

If you can not change the PHP setting...

frankywi - April 5, 2008 - 23:59

then you can still disable the check for register_globals = off.

Its in modules/system/system.install. Just give the if branche the same code the else branch has and comment the 3 'old' statements.

BUT this is surely not recommended and makes your drupal installation vulnarable.

 
 

Drupal is a registered trademark of Dries Buytaert.