How can I assign the contents of a file to a PHP variable, so that the variable would insert the contents exactly as using INCLUDE would.
This is what I'm after:
REPLACE
WITHCode:...HTML... <?php include('filepath/filename'); ?> ...
where $contents contains the contents of filename.Code:...HTML... <?php echo $contents; ?> ...
Thanks!



Reply With Quote



Bookmarks