how to read a php
file and echo it in a html
file?
i try to use readfile()
, file()
file_get_content()
to read a php
file.
but when i echo file_string
its parsed and then show.
how i can prevent to pars stirng
var that included php
codes.
here my code:
<?php
$path = '..../ex.php';
$source = fopen($path , "r");
echo fread($source,filesize($path ));
fclose($source);
?>
how to echo $source without compiled or parsed.