[PHP] call a php script in a php script

2006-03-28 Thread nicolas figaro

Hi,

I'd like to run a php script in another php script. (the first is 
lauched from the command line).


Is there a way to do it better than
system (/path/to/php script_included.php options).
?

the goal is to run several scripts with several options.

the result of the included script should be a returning code with a 
message. (but it hasn't been fixed yet).


Thanks a lot.

Nicolas Figaro

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] call a php script in a php script

2006-03-28 Thread Thomas Munz
I personaly use proc_open() to run PHP Scripts.

on Tuesday 28 March 2006 12:14, nicolas figaro wrote:
 Hi,

 I'd like to run a php script in another php script. (the first is
 lauched from the command line).

 Is there a way to do it better than
 system (/path/to/php script_included.php options).
 ?

 the goal is to run several scripts with several options.

 the result of the included script should be a returning code with a
 message. (but it hasn't been fixed yet).

 Thanks a lot.

 Nicolas Figaro

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php