Published in: PHP
I use this instead of file_get_contents() to allow the use of php-tags in the include files.
<?php include_once($file); print $site; ?>
You need to login to post a comment.
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.
Mikker on 07/23/07
1 person has marked this snippet as a favorite