Bug #67743 [Fbk->Opn]: file_get_contents get some url file error
| From: | skadon at 163 dot com | Date: | Tue, 05 Aug 2014 15:41:23 +0000 |
| Subject: | Bug #67743 [Fbk->Opn]: file_get_contents get some url file error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186983@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67743&edit=1
ID: 67743
User updated by: skadon at 163 dot com
Reported by: skadon at 163 dot com
Summary: file_get_contents get some url file error
-Status: Feedback
+Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Win32
PHP Version: 5.4.31
Block user comment: N
Private report: N
New Comment:
function file_get_contents Unable to resolve the domain name such as
"abc123.1688.com",it's resolve to 127.0.0.1
Previous Comments:
------------------------------------------------------------------------
[2014-08-02 03:07:57] requinix@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2014-08-02 02:22:51] 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";
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67743&edit=1