Re: execute my php code before every php call
| From: | Pierre Joye | Date: | Sun, 12 Jun 2011 19:12:15 +0000 |
| Subject: | Re: execute my php code before every php call | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53255@lists.php.net to get a copy of this message | ||
hi,
It is not really a question for this list but more php-general.
See http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
Cheers,
On Sun, Jun 12, 2011 at 8:47 PM, techloop <techloop.il@gmail.com> 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
>
>
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org