• I wanted to post this since I needed this information and could not find it here.

    To turn off register_globals you should be able to call you hosting company and have them do it. (Note that the newer versions default to off). But of course Godaddy will not turn it off (they say it can not be changed). I found this way on the net that worked well for me.

    1. Create a file called php.ini

    2. In this file, code only the following: register_globals = off

    3. Save this file, and upload as is to your root directory, (and only the root directory)

Viewing 7 replies - 1 through 7 (of 7 total)
  • https://www.cigarbeat.net/php.ini

    you need to do a little reading on the proper syntax for that file.

    https://www.reallylinux.com/docs/php.ini

    kill the php tags.

    Thread Starter vfleming

    (@vfleming)

    Okay, can you explain why? It sure seemed to work for me. It got rid of my ERROR: register_globals is enabled in your PHP environment! in my wordpress.

    because thats not proper syntax.

    if you dont believe me, you are free to download a copy of php and look at the default php.ini ??

    Thread Starter vfleming

    (@vfleming)

    Got it, that worked as well. I will update the first post.

    Thread Starter vfleming

    (@vfleming)

    It is not that I did not believe you whooami, it is because it was working for me and in your first post you just said(BEFORE YOUR EDIT)

    I assure you that will not work ??

    So you can see why I didn’t understand. I have tried dropping the PHP tags and everything still works fine so I have updated the first post with your suggestion.

    Geez

    I know that I edited it, and I know why I edited it.

    it worked the other way, I presume, because php ignores the php tags.. doesnt make it “right” though, and its bad form to repost simple errors like that for others to re-replicate, etc.. kinda like viral bad code.. thats all.

    geez.

    Thread Starter vfleming

    (@vfleming)

    No troubles here, I have fixed the first post and thank you for your help.

    -Vince

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to turn off register_globals for GoDaddy’ is closed to new replies.