PHP beginner |
|
Ik heb ook curl getest, maar als ik die open op die site gaat die door naar: http://213.73.255.137/
En zie ik een apache site.
<?php
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
curl_setopt ($ch, CURLOPT_URL, 'http://www.flitsservice.nl/');
curl_setopt ($ch,CURLOPT_HTTPHEADER,array('HeaderName: HeaderValue'));
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$file_contents = curl_exec($ch);
curl_close($ch);
// display file
echo "<textarea>".$file_contents."</textarea>";
?>
<?php $ch = curl_init(); $timeout = 0; // set to zero for no timeout curl_setopt ($ch, CURLOPT_URL, 'http://www.flitsservice.nl/'); curl_setopt ($ch,CURLOPT_HTTPHEADER ,array('HeaderName: HeaderValue'));curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); // display file echo "<textarea>".$file_contents."</textarea>"; ?>
|