Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Executing another PHP script
February 12, 2005, 3:15 am
rate this thread
Re: Executing another PHP script
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
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.
<http://www.andyhsoftware.co.uk/space Space: disk usage analysis tool