SyntaxFix
Write A Post
Hire A Developer
Questions
If it is a local file, you have to wrap it in htmlspecialchars like so:
$myfile = htmlspecialchars(file_get_contents($file_name));
Then it works