ID:               28973
 Updated by:       [EMAIL PROTECTED]
 Reported By:      richard dot quadling at carval dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         HTTP related
 Operating System: Windows XP Pro SP1
 PHP Version:      4.3.7
 New Comment:

There is something wrong with your DNS setup (permissions, etc.).
Propably the user as with the web server runs as doesn't have some
permissions correctly setup (firewall?) but the user as which you run
the script on the command line has them correctly set.. Definately not
a PHP bug.



Previous Comments:
------------------------------------------------------------------------

[2004-06-30 13:07:45] richard dot quadling at carval dot co dot uk

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



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28973&edit=1

Reply via email to