Re: Calling PHP shell scripts with exec from within PHP goes awry?

From: Date: Tue, 23 Sep 2003 02:11:27 +0000
Subject: Re: Calling PHP shell scripts with exec from within PHP goes awry?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-163538@lists.php.net to get a copy of this message
On Sun, 2003-09-21 at 22:00, Ray Hunter wrote: > On Mon, 2003-09-22 at 19:50, uvm wrote: > > I'm beggining to develop the theory that things go awry when > > using exec from within a webserver-executed PHP script to call > > a shell script itself written in PHP. > > > > Why are you trying to call a php script with exec...since it is php why > not just call it directly instead of creating a process outside of the > php you are in and then creating a php cgi to do the processing. It is > easier to call parse the file with the php process that you are > currently in. One damn good reason would be namespace conflict. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------'

« previous php.general (#163538) next »