473,775 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to solve this problem with REGISTER_GLOBAL S='On'

Hi,

The CRM application said that need to add an option
"REGISTER_GLOBA LS=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_GLOBA LS" is disabled (0). This is fatal.
Edit your php.ini and set REGISTER_GLOBAL S 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_GLOBAL S='yes'

......
Thanks
sam
Jul 17 '05 #1
6 2516
"wonder" <a@b.com> wrote in message news:cg******** ***@news.hgc.co m.hk...
Hi,

The CRM application said that need to add an option
"REGISTER_GLOBA LS=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_GLOBA LS" is disabled (0). This is fatal.
Edit your php.ini and set REGISTER_GLOBAL S 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_GLOBAL S='yes'

.....
Thanks
sam


Try not using quotes.

register_global s = On

instead of

register_global s = 'On'

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

- JP
Jul 17 '05 #2
wonder schrieb:
[PHP]

REGISTER_GLOBAL S='yes'


This should be:

register_global s=on

Regards,
Matthias
Jul 17 '05 #3
"wonder" wrote:
Hi,

The CRM application said that need to add an option
"REGISTER_GLOBA LS=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_GLOBA LS" is disabled (0). This is fatal. Edit your php.ini and set REGISTER_GLOBAL S 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_GLOBAL S=’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.co m/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.co m/PHP-solve-problem-REGISTER_GLOBAL S-ftopict141997.h tml
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.co m/eform.php?p=474 833
Jul 17 '05 #4
In message <41********@new s.athenanews.co m>, steve
<Us************ @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...
Jul 17 '05 #5
wonder schrieb:
Hi,

The CRM application said that need to add an option
"REGISTER_GLOBA LS=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_GLOBA LS" is disabled (0). This is fatal.
Edit your php.ini and set REGISTER_GLOBAL S 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_GLOBAL S='yes'

.....
Thanks
sam


Did you restarted your httpd service?

--
-------------------------------------------------------
Try this: SCA the Smart Class Archive for PHP
http://www.project-sca.org
-------------------------------------------------------
Jul 17 '05 #6
Personally I wouldn't use anything that still needs register_global s..
The author should fix their software, rather than force you to enable
autoglobals..

Just my $0.02 worth..

Regards,
Chris
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
12458
by: Frank | last post by:
Whats best : register_globals ON ? OR register_globals OFF ? I currently use: $_POST
3
2182
by: Adams-Blake Co. | last post by:
I know that having register_globals=ON is a security risk and we have it OFF. We want to use the GeekLog content manager and it only works with ON. Can someone give us some coding tips on how to mitigate any possible security problems if we turn it on? I know it has to do with a querystring that is same as a variable name being sent in the URL. How can we prevent that and still leave globals ON? Anyone have some simple magic? Thanks,
1
1807
by: Useko Netsumi | last post by:
That is the question. Perhaps some of the guru can tell us why is this such a big deal. In fact, with the register_globals=On makes things easiers - Most of the old code/example/tutorial will run.
2
5887
by: bouchia.nazha | last post by:
Hello I have encountered a problem using tomcat, linux and ssl. My problem seem to be a JVM memory deallocation problem on Linux. This is my configuration: OS: Redhat7.2 Tomcat: 4.0 Jdk: 1.3.1_07
12
3299
by: aeldaly | last post by:
Hello all, My shared server provider has register_globals on. I checked by running php_info(); from within a file. I would like to turn this off, but asking them to turn it off just for me will not work. I tried adding the following lines to the .htaccess file: <IfModule mod_php4.c> php_flag register_globals off </IfModule>
4
4402
by: Nyul | last post by:
Gurus, I have a verb big problem which I'm unable to explain. We have a DB2 V6.1.0 on AIX 4.3 I want to make a C stored procedure which at the end will be called by a PHP script. The development server was an UDB V6.1.0 on W2K. Everything went well. I was able to call the stored proc from C and from Delphi.
4
3156
by: Carlo, MCP | last post by:
Hello I found an abnormal behaviour on LinearGradientBrush (or FillRectangle). This code Public Class PanelPanel Inherits System.Windows.Forms.Panel Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim rect As System.Drawing.Rectangle = New System.Drawing.Rectangle(10, 10, Me.Width - 20, Me.Height - 20) Dim gradientBrush As System.Drawing.Drawing2D.LinearGradientBrush
8
1795
by: +mrcakey | last post by:
I understand that register_globals was turned off by default as, unless you initialised it, it could be altered by a malicious coder. What I don't understand is how the $_POST form is any more secure. Surely Mr Malicious Coder can still just send his own version of $_POST? Obviously I'm missing something, I just can't figure out what! +mrcakey
1
2672
by: Alex Vinokur | last post by:
Hi, I have compilation problem on SUN CC compiler with template while using option -m64 (64-bit addressing model). No problem while using option -m32 (32-bit addressing model) $ CC -V CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4014
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.