I am trying something like this:
$content = get_file_contents("abc.file");
echo $content;
The problem is that abc.file contains some HTML tags along with a php statement:
<?php require_once('a_php_file.php') ?>
How do I get the server to execute the php parts of abc.file before it being echo(ed).
Thanks!
Use include
:
include 'abc.file';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.