You are here: Re: Subclassing website « PHP « IT news, forums, messages
Re: Subclassing website

Posted by Jason Barnett on 01/07/05 00:04

Henning Sato von Rosen wrote:
> Hi all!
>
> I want to subclass a large website mainly written in PHP.
> The sublassing is useful for testing when you want to test a change, a
> bugfix or a new design, and only a few pages change. The subclass
> would consist of an almost empty representation of the website
> containing only the changed files, thus allowing testing without
> harming the ordinary website.
>
> Is it possible ro postprocess the output of PHP for a specific page
> (e.g. for changing all links dynamically adding a prefix to a path, if
> that file does exist in the website subclass)?
>

So.. you want to test the HTML output of your page? If so then you
probably want to use output buffering. After you have the page output
with ob_get_contents() you can do whatever filtering needs to be done.

http://php.net/ob_start


--
Teach a person to fish...

Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://php.net/manual/
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

 

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

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