Re: include file to global scope
| From: | Jochem Maas | Date: | Wed, 12 Oct 2005 15:00:43 +0000 |
| Subject: | Re: include file to global scope | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223965@lists.php.net to get a copy of this message | ||
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