1 Replies - 264 Views - Last Post: 08 August 2012 - 08:42 AM Rate Topic: -----

#1 E_Geek  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 45
  • View blog
  • Posts: 236
  • Joined: 20-February 11

auto_prepend_file Issues

Posted 08 August 2012 - 04:07 AM

Hey,

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 :)

Is This A Good Question/Topic? 0
  • +

Replies To: auto_prepend_file Issues

#2 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 171
  • View blog
  • Posts: 490
  • Joined: 20-December 08

Re: auto_prepend_file Issues

Posted 08 August 2012 - 08:42 AM

As far as I am aware that should work, as long as you have the correct permissions to the file you should be fine.

This post has been edited by KingCuddles: 08 August 2012 - 08:44 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1