register globals problem

Discussion in 'Site & Server Administration' started by tony84, Feb 23, 2008.

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

    I keep gettng the above error. On 1 of my sites and 1 or 2 others. Ive asked other people to look at it and its fine for them it seems to be just my problem, ive done the remove cache and what not but does anyone have any other suggestions?
     
    tony84, Feb 23, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    You can check on phpinfo() its value. If it's OFF, you might need to ON it, if your script requires. You can enable it in .htaccess by using this code
     
    gate2vn, Feb 23, 2008 IP
  3. calum

    calum Peon

    Messages:
    2,821
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah, you need to turn it on, it is more secure so some scripts require it.

    You can turn it on using .htaccess or php.ini if your host allows them, if not then send your host an email or contact their support and ask them.
     
    calum, Feb 23, 2008 IP
  4. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #4
    In fact, register_globals OFF is more secured than ON :)
     
    gate2vn, Feb 23, 2008 IP
  5. ChrisMono

    ChrisMono Active Member

    Messages:
    301
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #5
    there are patches for this on oscommerce contributions website which u can overwrite and sorted mate
     
    ChrisMono, Feb 23, 2008 IP
  6. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #6
    You have to edit your htacess file.99% hosts does not enable it server wide because it's a security risk.
     
    saadahmed007, Feb 25, 2008 IP
  7. suhailc

    suhailc Member

    Messages:
    56
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #7
    And if your server is running either SuPHP or PHPSuExec, use a php.ini file with the following contents:

     
    suhailc, Feb 27, 2008 IP
  8. delavar

    delavar Peon

    Messages:
    63
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi

    Go to That Account Cpanel --> File Manager ---> Public_html ----> (Find .htaccess) --> Edit .htaccess file and add
    --> Save the File and Enjoy !

    You don't Need to RUN Register Globals For Your Server (All Account). When an account Need it you must edit .htaccess file .

    Thanks
     
    delavar, Feb 27, 2008 IP