|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-08 11:41 UTC] sniper@php.net
[2004-07-08 12:04 UTC] richard dot quadling at carval dot co dot uk
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 00:00:02 2025 UTC |
Description: ------------ Hi. I have a script which is used to validate the location of files on another server. If I upload the script to my ISPs server (an IX of some sort) it works. If I use run the script from the command line on my pc, it works. If I run the script from my local web server, it does not. The code supplied is the critical code. The filename actually comes from a list and is concatenated inside a function. This method has previously worked! I use file_get_contents a LOT. Even in this script I use it to retrieve the lists using file_get_contents and it works, but for some reason, this site is (www2.oeri.ath.cx) is not working correctly with ISAPI. My web server is Sambar. I have NOT tried a snapshot yet. I am not sure why ISAPI would not work but CLI does. P.S. How do I produce a backtrace on a Windows version of PHP? Reproduce code: --------------- <?php $sLen = file_get_contents('http://www2.oeri.ath.cx/richq/check_file.php?url=Chumbawamba%2F1982%2F01+-+Garageland.mp3'); echo $sLen; ?> Expected result: ---------------- A number indicating the file size, in this case ... 1939853 Actual result: -------------- Warning: file_get_contents() [function.file-get-contents.html]: php_network_getaddresses: gethostbyname failed in C:\Downloaded Software and personal info\Saved CDs\Archive_002\Flight1721\public_html\proof.php on line 2 Warning: file_get_contents(http://www2.oeri.ath.cx/richq/check_file.php?url=Chumbawamba%2F1982%2F01+-+Garageland.mp3) [function.file-get-contents.html]: failed to open stream: No error in C:\Downloaded Software and personal info\Saved CDs\Archive_002\Flight1721\public_html\proof.php on line 2