Re: include file to global scope

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux