how to solve this problem with REGISTER_GLOBALS='On'

This is a discussion on how to solve this problem with REGISTER_GLOBALS='On' within the PHP Language forums, part of the PHP Programming Forums category; Hi, The CRM application said that need to add an option "REGISTER_GLOBALS=On" to the php.ini file, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-21-2004
wonder
 
Posts: n/a
Default how to solve this problem with REGISTER_GLOBALS='On'

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
Reply With Quote
  #2 (permalink)  
Old 08-21-2004
kingofkolt
 
Posts: n/a
Default 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...
> 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


Try not using quotes.

register_globals = On

instead of

register_globals = 'On'

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

- JP


Reply With Quote
  #3 (permalink)  
Old 08-21-2004
Matthias Esken
 
Posts: n/a
Default Re: how to solve this problem with REGISTER_GLOBALS='On'

wonder schrieb:

> [php]
>
> REGISTER_GLOBALS='yes'


This should be:

register_globals=on

Regards,
Matthias
Reply With Quote
  #4 (permalink)  
Old 08-21-2004
steve
 
Posts: n/a
Default Re: how to solve this problem with REGISTER_GLOBALS='On'

"wonder" wrote:
> 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


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
Reply With Quote
  #5 (permalink)  
Old 08-22-2004
Rob Allen
 
Posts: n/a
Default Re: how to solve this problem with REGISTER_GLOBALS='On'

In message <4127a103_2@news.athenanews.com>, steve
<UseLinkToEmail@dbForumz.com> writes
>
>
>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?



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...
Reply With Quote
  #6 (permalink)  
Old 08-22-2004
Nobody
 
Posts: n/a
Default Re: how to solve this problem with REGISTER_GLOBALS='On'

wonder schrieb:
> 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


Did you restarted your httpd service?

--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------
Reply With Quote
  #7 (permalink)  
Old 08-22-2004
Skeleton Man
 
Posts: n/a
Default 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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0