Hi,
In my site I use shtml extensively. Therefore I have quite a number of
text files that serve as shtml includes. Often these text files contain
more shtml includes. I'm creating PHP pages and wish to use these text
files within the pages, I know how to do this easily enough by using:
include("textfile.txt"); The problem is that because a lot of these text
files contain more includes the PHP pages are passing them over, as it
cannot deal with the shtml <!-- include --> tag. Here's a brief example:
script.php:
<?
include("text1.txt");
?>
text1.txt:
<html>
<!-- include file="text2.txt" -->
</html>
What I would like to happen is for the PHP script to be able to look for the
<!-- include --> tags within the text files and parse them as PHP
include(""); tags. Is there any way of achieving this?
Thanks.
Jamie Saunders
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]