seotech 发表于 2014-5-25 12:45:42

#34:

  1. <?php
  2. set_time_limit(0);
  3. $links = file('d.txt');

  4. function http_status($url) {
  5.     $ch = curl_init();
  6.     curl_setopt($ch, CURLOPT_URL, $url);
  7.     curl_setopt($ch, CURLOPT_HEADER, 1);
  8.     curl_setopt($ch, CURLOPT_NOBODY, 1);
  9.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10.     curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  11.     curl_exec($ch);
  12.     $status = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE);
  13.     curl_close($ch);
  14.     // return ($status == 200) ? 1 : 0;
  15.         return $status;
  16. }

  17. foreach ($links as $value) {
  18.         $value = trim($value);
  19.         echo $value . ' : <b>' . http_status($value) . '</b><br>';
  20. }
复制代码
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域名工具 绿色免安装版本
页: 1 2 3 [4] 5