Menu

#188 Register Globals

open
nobody
None
5
2004-04-13
2004-04-13
No

It has been over 2 months with no response for this -
so I am going to reissue this ticket to see if anyone
provides a solution.

Phphelpdesk does not allow anyone to login with
register_globals = Off.

Our Apache server requires that register_globals="Off"
for security reasons and for all other scripts to work.
"On" is not an option.

Does anyone have any recommendations on how to get this
to work without setting globals to "On" ???

Thanks

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Set REGISTER_GLOBALS ON per script / web folder

    Let's assume you are using an older version of PHPADSNEW
    which does not support REGISTER_GLOBALS OFF settings. The
    path to this script on my web server was:
    path: /home/jds/public_html/phpadsnew
    Solution using a .htaccess file

    I created a .htaccess file and uploaded it to:
    path: /home/jds/public_html/phpadsnew/.htaccess

    from http://www.desilva.biz/apache/regblsoff.html
    inside this .htaccess file I typed:
    code:

    php_flag register_globals on

    This only works if you're using PHP as an Apache module and
    you'll need AllowOverride Options or AllowOverride All
    privileges on it.

    Once you have completed uploading this file to the phpadsnew
    folder, everything should work like before! This is actually
    an Apache directive so, if you're using anything but the
    Apache Web Server, you're on your own, buddy

    n.b. The latest version of PHPADSNEW already supports
    REGISTER_GLOBALS OFF settings.

     
  • pmaier

    pmaier - 2004-05-11

    Logged In: YES
    user_id=1009570

    IT WOOOORKED !!!!

    I set the .htaccess in the URL/phphelpdesk folder.

    Thanx for the tip!

    Greetinx
    Pete

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.