You are here: Parse PHP, capture output and use as string?? « PHP Programming Language « IT news, forums, messages
Parse PHP, capture output and use as string??

Posted by petethebloke on 10/10/06 12:04

I'm not sure what to search the web for, so I wonder if someone here
can help me?

I have a website that uses many individual php pages. I'd like to
simplify design updates by using these scripts as includes, but I'm
trying to avoid having loads of:

$output_string.="<tr><td>blah blah".$some_variable;
$output_string.="blah blah</td></tr>";

You know the kinda thing.

Is there a way of parsing the script in the php processor and then
capturing the string created and dropping it into my templating script?

Thanks

Pete

 

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

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