A class to aid in creating HTML

Copyright (C) 2003 Travis Pettijohn
Released under the LGPL.

Home Page



Project Summary
Welcome to the PHPTML Home page! The goal of this class is to reduce the time it takes to output a simple webpage. For example, the following php code:
$p = new PHPTML();
echo $p->Page("Test page",
    $p->Table($p->TR("cell one")
        . $p->TR("another row with", "two cells!")
        . $p->TR("this guy takes","a", "third argument!"), 1));
generates the following HTML:
   Test page
  <link href="style.css" rel="stylesheet" type="text/css" />
<table border="1">
<tr><td>cell one</td></tr>
<tr><td>another row with</td><td>two cells!</td></tr>
<tr><td>this guy takes</td><td>a</td><td>third argument!</td></tr>
</html> Logo