seotech
发表于 2014-5-25 12:45:42
#34:
- <?php
- set_time_limit(0);
- $links = file('d.txt');
- function http_status($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_TIMEOUT, 10);
- curl_exec($ch);
- $status = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
- curl_close($ch);
- // return ($status == 200) ? 1 : 0;
- return $status;
- }
- foreach ($links as $value) {
- $value = trim($value);
- echo $value . ' : <b>' . http_status($value) . '</b><br>';
- }
复制代码php版本的。
idc369
发表于 2014-5-30 12:04:17
#35:
试试







jyuan
发表于 2014-7-7 16:38:54
#36:
看看不错哈哈
yzyzhdj
发表于 2014-7-13 00:14:04
#37:
好东西,看看了!!!!!!!!
1989@
发表于 2014-7-13 15:16:47
#38:
试试吧,,
yuxin123
发表于 2014-7-21 23:15:28
#39:
看看是啥

junjun103988
发表于 2014-11-25 19:58:35
#40:
要根据合同
微微笑
发表于 2014-12-4 14:51:39
#41:
真假的?啊
wyymx
发表于 2019-1-15 05:55:45
#42:
0000000000000000
yan1984516
发表于 2019-6-15 02:07:19
#43:
批量ping域名工具 绿色免安装版本