[PHPTAL] PHPTAL shows blank page
Laurent Bedubourg
lbedubourg at motion-twin.com
Wed Aug 9 09:34:08 CEST 2006
Alex Höbart wrote:
> Hi,
>
> I also have the same problem, see my post on 23 July titled "No output".
> I put the same code example on two machines:
> In PHP5.1.1 with php5_module (test machine) it works.
> In PHP5.1.4 with PHP as CGI (on shared host) I get the blank page.
>
> Somebody else has used PHPTAL on PHP5.1.4 ??!!
>
> Is it possible that the PHP API mode or some other PHP configuration
> could cause the problem? What is your environment?
>
> Alex
Hi Alex,
Can you test the following :
test.html:
<html>
<body>
<h1>Working</h1>
</body>
</html>
test.php:
<?php
require_once 'PHPTAL.php';
try {
$t = new PHPTAL('test.html');
echo $t->execute();
}
catch (Exception $e){
echo $e->__toString();
}
?>
Maybe your template contains some error you forgot to catch and print
(try/catch) and your application dies silently because your PHP is not
configured to print uncaughted exceptions.
Laurent
More information about the PHPTAL
mailing list