how to read a file and print its content in php code example Example: get html file data to variable in php $Vdata = file_get_contents('path/to/YOUR/FILE.php');