To keep the HTML text in the php variable, you need to add a slash for the quotes, but forgot the function for converting from HTML to PHP, you just need to completely place the HTML page into a PHP variable. Thank.
$a = <<<HERE ТУТ Html документ here;
Note the space after
<<<HERE or before
here; should not be, otherwise there will be an error. Addition
In order to screen characters in a variable, you can use the
mysql_escape_string function. Example of use:
$a = <<<HERE ТУТ Html документ here; $a = mysql_escape_string($a);
We write our html to a file, for example
superCoolPage.html , let's say we save it to the
static folder in the root of the site, then we read its contents:
$html = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/static/superCoolPage.html'); // profit
@johniek_comp - limit comments. I'm not driving here, you will understand “undersized”. Smile - drove into hashcode search DOCUMENT_ROOT - your fourth question
$page = file_get_contents('http://ссылка.com');
Your page between quotation marks will be in the form of HTML text (code) in the $ page variable.