Re: execute my php code before every php call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 Jun 2011, at 19:46, "techloop" <techloop.il@xxxxxxxxx> wrote:

> Hi all,
> 
> I have a simple code that override some env vars but i need it to run before 
> any other php code on every php execution.
> I would like to avoid any change of all php code (even if its only to 
> include the include command).
> 
> Any one knows of such way ?
> 
> I dont mind overriding this vars on php configuration file but i dont have 
> any control of it as its should work on even the most strict web hosting 
> (that still allow env vars manipulation)
> 
> Any alternatives ?
> 
> Thanks,
> 
> TL 

Look up the auto_prepend_file php.ini configuration option. That should give you the functionality you're after.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/

Sent from my leaf blower
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux