[PHP] execute my php code before every php call

2011-06-12 Thread techloop
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 ph

[PHP] debugging using error_log stuff

2011-06-12 Thread Tamara Temple
I read the recipe on debugging pmwiki functions and such at < http://www.pmwiki.org/wiki/Cookbook/DebuggingForCookbookAuthors > This isn't a PmWiki problem, per se, which is why it's going to both lists. I inserted the little sms function into pmwiki.php itself to try out (PmWiki de

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Tamara Temple
On Jun 12, 2011, at 1:46 PM, techloop wrote: 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. Have you looked at http://us.php.net/manual/en/ini.core.php#ini.auto-prepend-file ? -- PHP General Mailing List (http://w

Re: [PHP] execute my php code before every php call

2011-06-12 Thread Stuart Dallas
On 12 Jun 2011, at 19:46, "techloop" 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 o

[PHP] Re: [pmwiki-users] debugging using error_log stuff

2011-06-12 Thread Tamara Temple
On Jun 12, 2011, at 4:32 PM, Peter Bowers wrote: On Sun, Jun 12, 2011 at 3:18 PM, Tamara Temple > wrote: function sms($text,$switch=0){ global $MessagesFmt; error_log(date(DATE_RFC822)." Entered sms. text=$text. switch=$switch\n",3,"/var/log/pmwiki/error.log"); if ($switch