I'm wanting to set auto_prepend_file in an installer, which determines the method to set it based on the server. For example, I would use the php_sapi_name() to determine wether php is running as CGI, and in which case, create a php.ini file in order to set the auto_prepend_file. (Is this the correct way?)
I'm limited to one server, which is insanely tight on controls, and am having issues setting this up anyway right now.
Basically im a bit stumped, Should I be setting this by creating a php.ini file if the server is runnin CGI? And do I need one per directory or just one in the parent directory?
If this is an apache module, will using
php_value auto_prepend_file "path/to/my/file.php"work under every circumstance?
Would there be any special considerations to make if Suhosin is in use?
Or better yet, is there just one 'master' way to cover all bases?
Thanks in advance

New Topic/Question
Reply




MultiQuote



|