Posted by Jochem Maas on 10/12/05 18:00
Claudio wrote:
> Is it possible to process the file in second php instance?
> An only get its output?
yes - but its heavy to do (which ever way you do it).
basically you need to either call a commandline php script
via exec() (or something similar) e.g.
exec('php /path/2/your/script.php'); // read the manual to
// find out how to get you output/data
or also go through the command line and use a tool like 'wget'
to call another url e.g:
exec('wget http://domain.com/script.php');
OR you could use file_get_contents() (or something similar to do what wget
does directly from within php ....
$output = file_get_contents('http://domain.com/script.php');
lots of possibilities - given what you are trying to do I doubt
that any possiblity is optimal - shoehorning other applications
into your own as standalone modules is an art form ;-)
>
> Claudio
>
Navigation:
[Reply to this message]
|