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, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
"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 |
|
|||
|
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... |
|
|||
|
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 ------------------------------------------------------- |