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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -