Reply to Re: [PHP] include file to global scope

Your name:

Reply:


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
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация