我看了一下,前六项都没有问题,只是最后一项我访问那个测试脚本以后,出现了下面的文字:
Warning: fsockopen(): unable to connect to zck.uhostall.com/bbs:80 (Failed to parse IPv6 address "
zck.uhostall.com/bbs:80") in /home/u163868660/public_html/bbs/test.php on line 2 Failed to parse IPv6 address "zck.uhostall.com/bbs:80" (0)
我把里面的www.example.com改成了zck.uhostall.com/bbs
具体代码如下:
- <?php
- $fp = fsockopen("zck.uhostall.com/bbs", 80, $errno, $errstr, 30);
- if (!$fp) {
- echo "$errstr ($errno)
- n";
- } else {
- $out = "GET / HTTP/1.1rn";
- $out .= "Host: zck.uhostall.com/bbsrn";
- $out .= "Connection: Closernrn";
- fwrite($fp, $out);
- while (!feof($fp)) {
- echo fgets($fp, 128);
- }
- fclose($fp);
- }?>
复制代码
是什么意思??怎么解决??? |