You are here: Re: How to process a local file rather than just read it « PHP Programming Language « IT news, forums, messages
Re: How to process a local file rather than just read it

Posted by ZeldorBlat on 11/11/27 11:30

Use include() to parse the file and capture the output with output
buffering. For instance:

ob_start();
include 'myfile.php';
$output = ob_get_contents();
ob_end_clean(); //discard the buffer since we already have the contents

echo htmlentities($output);

 

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

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