On Fri, 11 Feb 2005 21:20:19 GMT, Amir <an****@verizon.net> wrote:
Andy Hassall wrote: On Fri, 11 Feb 2005 21:15:22 GMT, Amir <a.*****@verizon.net> wrote:
Can one PHP script execute another PHP script?
Yes.
How?
Depends where it is.
include(), require(), fpassthru(), exec() are all candidates.
include or require would be the preferred way, since it's all in the same PHP
interpreter.
fpassthru() could be used to get the output of a PHP script from another
server, fetched over HTTP.
exec() could be a last resort, starting up a separate PHP command-line
interpreter. Not really a good option.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool