Connecting Tech Pros Worldwide Help | Site Map

how to solve this problem with REGISTER_GLOBALS='On'

wonder
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi,

The CRM application said that need to add an option
"REGISTER_GLOBALS=On" to the php.ini file, so I did what it told.
But I still can't get rid off the following error:

The PHP variable "REGISTER_GLOBALS" is disabled (0). This is fatal.
Edit your php.ini and set REGISTER_GLOBALS to "On".

I changed the value "On" to "Yes", still getting the same error.
What is the correct way to fix this problem? It might be not reading the
php.ini file. The php.ini file is located at /usr/local/etc/ directory,
and I have also made a symbolic link to /etc/ as well.

The relevant content of the php.ini file is:

[PHP]

REGISTER_GLOBALS='yes'

......


Thanks
sam
kingofkolt
Guest
 
Posts: n/a
#2: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


"wonder" <a@b.com> wrote in message news:cg81v8$2p3m$1@news.hgc.com.hk...[color=blue]
> Hi,
>
> The CRM application said that need to add an option
> "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told.
> But I still can't get rid off the following error:
>
> The PHP variable "REGISTER_GLOBALS" is disabled (0). This is fatal.
> Edit your php.ini and set REGISTER_GLOBALS to "On".
>
> I changed the value "On" to "Yes", still getting the same error.
> What is the correct way to fix this problem? It might be not reading the
> php.ini file. The php.ini file is located at /usr/local/etc/ directory,
> and I have also made a symbolic link to /etc/ as well.
>
> The relevant content of the php.ini file is:
>
> [PHP]
>
> REGISTER_GLOBALS='yes'
>
> .....
>
>
> Thanks
> sam[/color]

Try not using quotes.

register_globals = On

instead of

register_globals = 'On'

Also, make sure you restart the server after making the changes.

- JP


Matthias Esken
Guest
 
Posts: n/a
#3: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


wonder schrieb:
[color=blue]
> [PHP]
>
> REGISTER_GLOBALS='yes'[/color]

This should be:

register_globals=on

Regards,
Matthias
steve
Guest
 
Posts: n/a
#4: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


"wonder" wrote:[color=blue]
> Hi,
>
> The CRM application said that need to add an option
> "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told.
> But I still can’t get rid off the following error:
>
> The PHP variable "REGISTER_GLOBALS" is disabled (0). This is[/color]
fatal.[color=blue]
> Edit your php.ini and set REGISTER_GLOBALS to "On".
>
> I changed the value "On" to "Yes", still getting the same[/color]
error.[color=blue]
> What is the correct way to fix this problem? It might be not[/color]
reading[color=blue]
> the
> php.ini file. The php.ini file is located at /usr/local/etc/
> directory,
> and I have also made a symbolic link to /etc/ as well.
>
> The relevant content of the php.ini file is:
>
> [PHP]
>
> REGISTER_GLOBALS=’yes’
>
> ......
>
>
> Thanks
> sam[/color]

I am suspecting also that it may not be reading the ini file. Try
renaming the ini file, and see if php fails. Is there another ini
file. Can you search?

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-solve-problem-REGISTER_GLOBALS-ftopict141997.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=474833
Rob Allen
Guest
 
Posts: n/a
#5: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


In message <4127a103_2@news.athenanews.com>, steve
<UseLinkToEmail@dbForumz.com> writes[color=blue]
>
>
>I am suspecting also that it may not be reading the ini file. Try
>renaming the ini file, and see if php fails. Is there another ini
>file. Can you search?[/color]


To find out which php.ini file PHP thinks it is using, create a file
called "info.php" in the root of your website with the text:

<?php

phpinfo();

?>

If you then browse to info.php, you'll find the php.ini file's directory
listed near the top.


--
Rob...
Nobody
Guest
 
Posts: n/a
#6: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


wonder schrieb:[color=blue]
> Hi,
>
> The CRM application said that need to add an option
> "REGISTER_GLOBALS=On" to the php.ini file, so I did what it told.
> But I still can't get rid off the following error:
>
> The PHP variable "REGISTER_GLOBALS" is disabled (0). This is fatal.
> Edit your php.ini and set REGISTER_GLOBALS to "On".
>
> I changed the value "On" to "Yes", still getting the same error.
> What is the correct way to fix this problem? It might be not reading the
> php.ini file. The php.ini file is located at /usr/local/etc/ directory,
> and I have also made a symbolic link to /etc/ as well.
>
> The relevant content of the php.ini file is:
>
> [PHP]
>
> REGISTER_GLOBALS='yes'
>
> .....
>
>
> Thanks
> sam[/color]

Did you restarted your httpd service?

--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------
Skeleton Man
Guest
 
Posts: n/a
#7: Jul 17 '05

re: how to solve this problem with REGISTER_GLOBALS='On'


Personally I wouldn't use anything that still needs register_globals..
The author should fix their software, rather than force you to enable
autoglobals..

Just my $0.02 worth..

Regards,
Chris


Closed Thread