how to solve this problem with REGISTER_GLOBALS='On'

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • wonder

    how to solve this problem with REGISTER_GLOBALS='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
  • kingofkolt

    #2
    Re: how to solve this problem with REGISTER_GLOBAL S='On'

    "wonder" <a@b.com> wrote in message news:cg81v8$2p3 m$1@news.hgc.co m.hk...[color=blue]
    > 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[/color]

    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


    Comment

    • Matthias Esken

      #3
      Re: how to solve this problem with REGISTER_GLOBAL S='On'

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

      This should be:

      register_global s=on

      Regards,
      Matthias

      Comment

      • steve

        #4
        Re: how to solve this problem with REGISTER_GLOBAL S='On'

        "wonder" wrote:[color=blue]
        > 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[/color]
        fatal.[color=blue]
        > Edit your php.ini and set REGISTER_GLOBAL S 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_GLOBAL S=’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.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

        Comment

        • Rob Allen

          #5
          Re: how to solve this problem with REGISTER_GLOBAL S='On'

          In message <4127a103_2@new s.athenanews.co m>, 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...

          Comment

          • Nobody

            #6
            Re: how to solve this problem with REGISTER_GLOBAL S='On'

            wonder schrieb:[color=blue]
            > 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[/color]

            Did you restarted your httpd service?

            --
            -------------------------------------------------------
            Try this: SCA the Smart Class Archive for PHP
            http://www.project-sca.org
            -------------------------------------------------------

            Comment

            • Skeleton Man

              #7
              Re: how to solve this problem with REGISTER_GLOBAL S='On'

              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


              Comment

              Working...