Here it is :
In the JS file, change by this :
Code:
page_request.open('POST', 'YouPhpScript.php', true);
page_request.send("url="+url);
The PHP should look like something like this (I do it from memory) :
Code:
<?php
header('Content-Type: text/html; charset=ISO-8859-15');
function getSource($url) {
$file = fopen ($url,"r");
if (!$file) {
return null;
}
$doc = "";
while (!feof ($file))
$doc .= fgets ($file, 1024);
fclose($file);
return $doc;
}
extract($_POST);
$url = htmlentities(utf8_decode($url));
echo getSource($url);
?>
If there are syntax errors, just correct them
Bookmarks