salut voila ce code utilise la fonction php curl donc il faut quelle soit activer sur le server distant
<?php
$cur_adrs = $_POST['addr'];
echo "<form action='browser.php' method='post'><input type='hidden' name='step' value='browse'>
Address: <input type='text' class='input_url' name='addr' value='$cur_adrs' size='55'>
<input type='submit' class='input_urlsend' value='Go'>
</form><br></link>
<center><font size='1' color='green'>On <a href='http://addserverproxy'>Proxy Script </a>
</font></center><br><hr>";
$curl_handle = curl_init($_POST['addr']);
curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); // return as a string.
curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 5); // Prevents your page from hanging if the remote site is down.
$buffer = curl_exec($curl_handle);
if (curl_errno($curl_handle)) {
// Error(curl_error($curl_handle));
echo "Error, check URL Address <a href='http://blablablabl'>Need Help?^^</a>";
} else {
curl_close($curl_handle);
if (empty($buffer)) {
Error('Unable to connect to '.$_POST['addr'].'');
} else {
$buffer = preg_replace('/(?s)<meta http-equiv="Expires"[^>]*>/i', '', $buffer);
if ($buffer === true) {
Error('Page has a redirect, please enter the URL of the final redirection');
} else {
print($buffer);
}
}
}
?>
ps je cherche un chaine proxy en php merci
Have Fun !
