Php 加载将返回未找到地址的页面。(基本上加载不可加载的页面)
好的,我的标题可能没有特别多的描述,但是,下面是我的PHP代码:Php 加载将返回未找到地址的页面。(基本上加载不可加载的页面),php,curl,file-get-contents,Php,Curl,File Get Contents,好的,我的标题可能没有特别多的描述,但是,下面是我的PHP代码: <h1>404 Server Error</h1> <?php $ip = $_GET['ip']; if($ip) { $ip = str_replace('%3A', ':', $ip); $ip = "http://" . $ip; for($i = 0; $i < 11; $i++) { $ch = curl_init($ip); // (Also tried file_get_cont
<h1>404 Server Error</h1>
<?php
$ip = $_GET['ip'];
if($ip) {
$ip = str_replace('%3A', ':', $ip);
$ip = "http://" . $ip;
for($i = 0; $i < 11; $i++) {
$ch = curl_init($ip); // (Also tried file_get_contents($ip); instead, but didn't work
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 200);
curl_exec($ch);
curl_close($ch);
}
}
?>
404服务器错误
要使用php加载网站,请使用:
header('Location: www.yourwebsite.com');
我希望在几秒钟内加载多次,最好是。我制作了一个临时解决方案,在OP中编辑它。