Menu

#186 register_globals

open
nobody
None
5
2004-01-30
2004-01-30
No

My current Apache and PHP configuration requires that
register_global = Off

However, Phphelpdesk does not work correctly or at
least I am unable to login with register_globals = Off.
Everything does work with register_globals = On but this
breaks all the other sites and php scripts. Is there a
workaround for this please?

Thank you

Discussion

  • pmaier

    pmaier - 2004-05-11

    Logged In: YES
    user_id=1009570

    Hello,

    I got the same problem on a SuSE-Linux System with
    apache-1.3.27-38 and mod_php4-4.3.1-24

    I am not able to login - I always come back to the Login-Screen.
    When I set "register_globals" to "On", everything works fine.
    I dont want to set the variable to "On" permanently.

    Any idea how to make it work without "register_globals = On" ???

     
  • Heitkamp

    Heitkamp - 2004-10-02

    Logged In: YES
    user_id=689899

    Well, it needs some reprogramming to have the gloabls
    switched off. Variables have to be exchange by
    HTTP-REquests. In some moduls this was already changes some
    are still missing. At the moment I unfortunately have not
    time do dedicate to it. If there is somebody happy to help
    with it I could at least assist. There is no workaround
    unless you using another apache config.
    Tamo

     
  • Tim Slighter

    Tim Slighter - 2004-10-04

    Logged In: YES
    user_id=773633

    The only current workaround is to place a .htaccess file in
    the phphelpdesk directory with the following in the file:

    register_globals on

    the httpd.conf file should be edited for that directory to
    change the AllowOverride directive if you are using

    <Directory "/var/www/html/phphelpdesk">
    AllowOverride Options

    If not using <Directory ... > for each directory then the
    default AllowOverride None - needs to be changed to
    AllowOverride Options.

    Note that if you have to change the default AllowOverride,
    this could present a security risk as it will allow
    .htaccess overrides in every directory in the htdocs or html
    directory for the webserver.

     

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.