Replace custom INCLUDE template tag with contents of a file

From: Date: Wed, 15 Aug 2001 03:00:45 +0000
Subject: Replace custom INCLUDE template tag with contents of a file
Groups: php.general 
Request: Send a blank email to php-general+get-62739@lists.php.net to get a copy of this message
I am writing code to read in a template and parse it's values. One of the values is an Include tag of the following form:- <!-- INCLUDE : /relative/path/to/file.txt --> I want this to be replaced with the content of /relative/path/to/file.txt This tag will appear in multiple places in the template with different values for the the file to open. Can anyone you help? I can't figure out how to do it

« previous php.general (#62739) next »