in php I would like to open a html file, delete the content of the div(class Areas) and save it.
$dom = new DOMDocument; $dom->loadHTMLFile( \"temp/page\".$y.
saveHTML just outputs the html as a string use saveHTMLFile to save it as a file.