How do I limit PHP apps to their own directories and their own php.ini?

前端 未结 6 741
走了就别回头了
走了就别回头了 2021-01-01 00:38

I am running multiple PHP apps on my Mac, running OS X 10.5.6, Apache 2, PHP 5. I have subdomains setup for each project, a host file entries for each subdomain, and Virtua

6条回答
  •  春和景丽
    2021-01-01 01:38

    Regarding application isolation ~ is this in regards to securing PHP scripts so they cannot access others? Please elaborate -

    Regarding php.ini - I am not aware of any way to use a specific php.ini per directory, but you could certainly create a php include page with a bunch of ini_set() lines, perhaps something like this ..

    
    

    and the ini_set.php script:

    
    

    If you are interested in learning more about the ini_set() function, here is the documentation page on php.net: http://us3.php.net/ini_set

    Hope this was somewhat helpful ~

提交回复
热议问题