You are here: Re: Read *parsed* PHP file into a variable? « PHP Programming Language « IT news, forums, messages
Re: Read *parsed* PHP file into a variable?

Posted by Daniel Loose on 08/24/05 23:14

>Sounds like you could use buffering.
><?php
>
>ob_start(); // Start output buffering.
>// Instead of outputting anything, the output is now stored in a buffer.
>include('yourfile.php');
>// There, now the file has been included and php parsed.
>// It isn't output, it goes into the buffer.
>$yourfile = ob_get_clean();
>// Now we read everything that has been buffered... And stops buffering.
>

Pretty cool, thanx so much! Never heard of output buffering before.
Yeah...

Guess no need to fight with my other Reply anymore (concerning
eval_html()).

Enjoy, D.

 

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

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