Network   Andreas Demmer | marketing-meile | debugConsole | mobile2web | ONTIS | mediaDB | formWizard | P.E.T.

 

logo

> project website

> downloads

> documentation

> newsletter
P.E.T supported & hosted by
SourceForge.net Logo

PHP - Hypertext Preprocessor P.E.T. is both a meta-language for designing templates and an engine for processing them. Use it to seperate PHP source code from source code written in HTML, this makes your scripts much easier to handle.

Once included in your scripts, it enables you to parse dynamic content into your templates, output them or even dump them to disk. And all this can be done with minimum effort and very vew lines of code...

 <?php
   $pet = new pet('website.html');
   $pet->greeting = 'Hello World!';
   echo $pet->fetch();
 ?>

It can substitute tags in your templates with content delivered by your PHP script. It is not limited to single pieces of content but will also work with arbitrary interlocked datasets with multiple rows each. You can use loop tags to define parts of the template to be repeated for each row in datasets.

Open Source

Additional information, manuals and examples are available at the project website hosted at SourceForge. There you can download the latest P.E.T. distributions as well.


Developed by Andreas Demmer and published as open source software under the GNU Lesser General Public License