I'm using the exec() command in PHP5 to run some Perl scripts external to my web application. I noticed that the environment variables are not always set properly in the shell created by exec(). For example, if I run the following PHP script through apache just to list the content of environment variables, I get these results:
Some critical environment variables are missing such as TMPDIR and PERL5LIB and so on. I found a workaround, namely using the putenv() command at the beginning of my script, like this:
However, I'd like to set these variables once and for all in a profile somewhere and not have to deal with them in the script itself.
So my question is: where is that profile for the _www user (or any user running under apache)?
-- Burt Crépeault Research Assistant Centre de Recherche de l'Université Laval - Robert-Giffard
Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden
This email sent to email@hidden