html - PHP file_get_contents, execute the PHP on the included file before include -
currently use file_get_contents command include html of file. added php , causing problem. php being read html , not executed. how can retrieve file content php executed?
oh , need content in tring. include doesn't work in case believe, right?
thanks!
ob_start(); include 'file_to_include.php'; $contents = ob_get_clean();
the content of included file (with php being executed) in $contents
.
Comments
Post a Comment