Hello all!
My problem is: I have 2 web php pages, in a online server. 1 is listing database content, the other is to "download" the 1º but in html...
I'm doing this by getting the content of 1º page, in a link like http:\mysite.com\page.php, to make the page run and output all in "html". If I used the local name page "page.php" it simply returned the php code (all).
The problem is that i tried to get the content with cUrl, file_get_content, file, fread.. nothing works! and if I put htmlentities, will return just javascript that is on body of that page...
And... in local, all works! And I searched and checked if allow_url_open is on and it is!
$content = file($myFile);
foreach ($content as $lines) {
echo htmlentities($lines);
}