Reply to Re: Execute script and catch output

Your name:

Reply:


Posted by Smitro on 08/18/05 11:09

werdna.sivad@gmail.com 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?
>
It won't if you don't tell it to. You can use Require and Include but
just don't have any echo's or print's in the file have only variables.
then grab the variables in the file that required them.

[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

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