Hi, Saturday, December 20, 2003, 2:36:40 AM, you wrote:
M> Hi, I need to add /usr/local/bin to the PATH used by my PHP web
M> application. How?
M> Br,
M> Morten
with getenv() and putenv() on a page by page basis
$newpath ='/usr/local/bin';
$current_path = getenv('PATH');
$newpath = $newpath.':'.$current_path;
putenv('PATH='.$new_path);
Now any exec shells will get the new path
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

