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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php