Results 1 to 3 of 3

FATAL ERROR: register_globals is disabled in php.ini

This is a discussion on FATAL ERROR: register_globals is disabled in php.ini within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hi I am new to PHP, OSCOMMERCE, MYSQL and Apache. I am running WIn2000 I have successfully set up Apache, ...

      
  1. #1
    New Member
    Join Date
    Feb 2003
    Posts
    6
    Rep Power
    0


    Default FATAL ERROR: register_globals is disabled in php.ini

    Hi I am new to PHP, OSCOMMERCE, MYSQL and Apache.

    I am running WIn2000 I have successfully set up Apache, PHP and MYSQL.

    I have created my database and assigned the user as per the new oscomerce doco. In the doco it says to open a browser and run the install http://localhost/catalog/install/index.php However, I am getting the following error here.

    FATAL ERROR: register_globals is disabled in php.ini, please enable it!

    I did a search on this file and found the follwing three files. I changed each of these files register_globals parameter to = on (Previously they where set to = OFF). There was a security warning for the implication of this.

    php.ini-dist
    php.ini-recommended
    php.ini.conf


    I re-started the server and tried again, still the same problem.

    Questions.
    Is this related to permissions? If so I must have done something wrong here. COuld someone explain how to properly set the permissions. I understand CHMOD are unix commands. I have checked the permissions from windows explorer/security and nothing seems to jump out (I have everything set to "Allow".


    Any advice would be appreciated.

    Many thanks,

    Mark

  2. #2
    New Member
    Join Date
    Jan 2003
    Posts
    26
    Rep Power
    0


    Default

    HIya Marko

    Your getting the error message because register_global is disabled in
    " php.ini " file.

    You can locate the file :

    C:\Windows\php.ini

    Open php.ini in any text editor program and look for this section

    ;;;;;;;;;;;;;;;;;
    ; Data Handling ;
    ;;;;;;;;;;;;;;;;;

    /---

    Some other codes ....

    ; You should do your best to write your scripts so that they do not require
    ; register_globals to be on; Using form variables as globals can easily lead
    ; to possible security problems, if the code is not very well thought of.
    register_globals = Off


    --/

    You will see " register_globals = Off " set to Off , just replace that with

    register_globals = On

    And your set to go


  3. #3
    New Member
    Join Date
    Feb 2003
    Posts
    6
    Rep Power
    0


    Default

    Thanks heaps,

    I'm back on track.

    Marko

Similar Threads

  1. Remedy for 'register_globals' error
    By Jan5 in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 07-28-2006, 12:26 PM
  2. FATAL ERROR: register_globals is disabled in php.ini etc..
    By heds22 in forum osCommerce 2.2 Installation Help
    Replies: 16
    Last Post: 07-20-2006, 01:03 PM
  3. FATAL ERROR: register_globals is disabled in php.ini
    By robroymedia in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 09-13-2004, 11:57 AM
  4. fatal error
    By litotes in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 03-09-2004, 06:57 PM
  5. php-error: register_globals is disabled in php.ini
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 11-05-2002, 02:29 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •