|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-08-02 02:22 UTC] skadon at 163 dot com
Description: ------------ the real is get "http://localhost/", not $url. Test script: --------------- $url="http://shjianbang168.1688.com/"; $st=file_get_contents($url); if ($st){ file_put_contents("./a.txt", $st); echo "OK"; }else{ echo "error"; } Patchesadd-fronk-support (last revision 2014-08-02 02:25 UTC by skadon at 163 dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 14:00:02 2026 UTC |
D:\Documents and Settings\Administrator>ping shjianbang168.1688.com Pinging cn.split.1688.com [42.156.140.61] with 32 bytes of data: Reply from 42.156.140.61: bytes=32 time=35ms TTL=54 Reply from 42.156.140.61: bytes=32 time=30ms TTL=54 Reply from 42.156.140.61: bytes=32 time=36ms TTL=54 Reply from 42.156.140.61: bytes=32 time=36ms TTL=54 Ping statistics for 42.156.140.61: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 30ms, Maximum = 36ms, Average = 34msNot sure what I can tell you except that if PHP is sending you to 127.0.0.1 then that's because something told it to. As one more thing to check, see what you get with print_r(dns_get_record("shjianbang168.1688.com")); print_r(get_headers("http://shjianbang168.1688.com/")); If that doesn't help then try a mailing list or online forum for more support. http://php.net/support.php