"php_flag register_globals on" help

Discussion in 'Apache' started by Hades, Apr 23, 2007.

  1. #1
    Hi,

    I have a script which I am installing
    on my godaddy hosting account. I
    uploaded the script, but now it seems
    as though there is a problem. If you
    go to the website, it gives an error
    " www.inet-junkie.net " It says to
    put "php_flag register_globals on" in
    the .ht_access files. I have found
    both of these files, but they are
    both empty. I pasted the line into
    them, but I get one of those 500
    Fatal Internal Server Error messages.
    Can anyone help me? I don't know
    what I am doing wrong. Should
    there be anything else in the
    .ht_access file?

    Thanks
    Nick
     
    Hades, Apr 23, 2007 IP
  2. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If could be that your server doesn't allow you to modify PHP settings or that specific setting.

    Try this approach: php_flag register_globals 1

    Otherwise, you'll need to edit your php.ini file.
     
    Webray, Apr 23, 2007 IP
  3. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I think with godaddy you need to use a php.ini file in your root, not htaccess

    Although I'm not 100% sure
     
    cyanide, Apr 25, 2007 IP
  4. KalvinB

    KalvinB Peon

    Messages:
    2,787
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You don't want register globals on.

    Any script that requires it is junk. All GET/POST variables should be accessed through $_REQUEST

    And yes, you need to put the modified php settings in php.ini. You are limited in what settings you can change. You shouldn't need to change any of them.

    The error is most likely caused by the malformed .htaccess file so just get rid of it.
     
    KalvinB, Apr 29, 2007 IP