Use include();  or require();

-------------------------------------------- 
Brandon Orther 
WebIntellects Design/Development Manager [EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--------------------------------------------

-----Original Message-----
From: Georgie Casey [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 06, 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Writing PHP files from inside a PHP file

I want to extract information from a database table and create a
half-static, half-dynamic PHP page from the info. I want to store the
template for the new page in an external file with tags in the places
where
I want variables to be printed. What;s the best of achieving this??

I tried "fread" but that just printed "<? echo $variable; ?>" to the
static
page instead of replacing it with the value.

Any suggestions?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]

***************************
http://www.filmfind.tv
Ireland's Online Film Production Directory
***************************



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to