register_globals boolean is set as "off" in php4.2 and after.

But if I have some sites writtne as the register_globals boolean set as "on".

Can I have a php.ini to run some sites with the register_globals boolean set as "off" and another php.ini with some other sites with the register_globals boolean set as "on" on a same server?

Thanks!

    yes, just copy 2 different php.ini's to the 2 different directories where the scripts reside.

      so how do the web site know to run the php.ini from its directory first, and run the server default php.ini if they cannot find php.ini in its own directory?

      is it the web site default set up to run php.ini from its own diretory first?

      or should i tell it so? and how?

      thanks!

        Originally posted by searain
        so how do the web site know to run the php.ini from its directory first, and run the server default php.ini if they cannot find php.ini in its own directory?

        that is just the deafult way PHP is compiled.

          Write a Reply...