Currently I am using file_get_contents to get contents of an HTML page I have.
if(file_exists($fileName)) {
echo "file exists!";
$current = file_get_contents("./docs/page1.html");
echo $current;
} else {
echo "file doesn't exist";
file_put_content($fileName, "testing creating a new page");
}
when the HTML file exists, I store the content using file_get_contents in variable $current and then echo current. However, nothing displays. Just a black page (which I'm guessing is the css in the html page)
If I can't spit out the page, is there a way to extract each element of the html page (divs, etc)?