You are here: Re: Execute script and catch output « PHP Programming Language « IT news, forums, messages
Re: Execute script and catch output

Posted by Steve on 08/18/05 09:53

On Wed, 17 Aug 2005 20:42:06 -0700, werdna.sivad wrote:

> In PHP I need to be able to execute another script from inside another
> and catch the output. How do I do this? The require() and include()
> functions will execute a script, but it sends the output to the
> browser, I don't want this. I need to be able to catch the output and
> store it in a file or perform logic on it.
>
> I've tried doing fopen and hitting the script that way, but the problem
> is that doing this kills the session state as if I were a 3rd party
> user accessing the system. Any ideas?

Try popen?

 

Navigation:

[Reply to this 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

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