Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2002
    Location
    London, UK
    Posts
    9,037

    register_globals and PHP ini :)

    Ok, I have some older PHP scripts which require register_globals to be on.... I know its better to re-write the script - but i just want to get it working for now

    so in php.ini i change register_globals = on

    none of the scripts (which work on my other server) will work still... the problem is definitely to do with passing variables..

    Any ideas would be great.. im going mad!
    Matt Wallis
    United Communications Limited
    High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
    UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

  2. #2
    Join Date
    Nov 2001
    Location
    Canada
    Posts
    1,963
    restart apache

  3. #3
    Join Date
    Nov 2001
    Location
    Ann Arbor, MI
    Posts
    2,978
    You might do a phpinfo() page, and verify that your changes are being honored. It's possible that you have the php.ini file in the wrong path.

    I always just set these parameters in the httpd.conf file, and don't use a php.ini file.
    -Mark Adams
    www.bitserve.com - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

  4. #4
    Join Date
    Aug 2002
    Location
    London, UK
    Posts
    9,037
    http://www.unitedhosting.co.uk/exchange.php

    As you can see from above, my register_globals is on, yet it still doesnt want to work.. anymore ideas on this matter ?

    its making me go mad!
    Matt Wallis
    United Communications Limited
    High Performance Shared & Reseller | Managed VPS Cloud | Managed Dedicated
    UK www.unitedhosting.co.uk | US www.unitedhosting.com | Since 1998.

  5. #5
    Join Date
    Nov 2001
    Location
    Ann Arbor, MI
    Posts
    2,978
    It's probably not the register_globals that is breaking your site, then. It does look like it's on.

    You might want to compare what else you compiled in on your other server where it works and the one that it doesn't work on.

    I think the most obvious indicator of a problem will be any errors generated by your site.
    -Mark Adams
    www.bitserve.com - Secure Michigan web hosting for your business.
    Only host still offering a full money back uptime guarantee and prorated refunds.
    Offering advanced server management and security incident response!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •