Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

[PHP3] trying dynamic build From: Nikolai Vladychevski (niko <email protected>)
Date: 03/31/00

Hi,

i am trying to migrate to dynamic build of my web, so I was thinking to
separate the parts of the html that perform single function into
separte files , for example i have this file, called
error-template.php3:

<html><body>
<b>Error: <? echo $errortext ?><b><br>
</body></html>

This will display diferent error message after processing it, but the
problem is how to process?
I was trying the function fpassthru() but it does not evaluate the code
so

$errortext="You are missing your e-mail address");
$fp=fopen("/home/httpd/html/error-template.php3");
fpassthru($fp);

doesnt work , it passes through without evaluating ...

I also thought , maybe i can use eval() function , but then I would need
to parse the html myself for <? ?> strings and this implies more coding
and so on, so I would like to ask what are the best approaches for this
problem before I reinvent the wheel.

Thanks in advance
Nikolai

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>