PHP interesse |
|
oke ik heb nu dit:
<?php
function bron($text){
$text = preg_replace("#
(.*?)
\<body \>
(.*?)
\</body \>
(.*?)#i","\\2", $text);
return $text;
}
$ch = curl_init($_GET['uri']);
$text = bron($ch);
echo $text;
curl_exec($ch);
curl_close($ch);
?>
<?php function bron($text){ (.*?) \<body \> (.*?) \</body \> (.*?)#i","\\2", $text); return $text; } $ch = curl_init($_GET['uri']); $text = bron($ch); curl_exec($ch); curl_close($ch); ?>
maar als ik nu naar de pagina ga zie ik in de bron nogsteeds de head... |