RE: fopen and http://

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Warren Vail wrote:
>> Hi, I'm having a problem with fopen and http files.  I keep getting the
>> error:
>>
>> Warning: fopen(http://zed/htdocs/rgfindingaids/series594.html )
>> [function.fopen]: failed to open stream: HTTP request failed!
>> HTTP/1.1 404
>> Not Found in /home/awilliam/public_html/rgfaidstest.php on line 15
>> http://zed/htdocs/rgfindingaids/series594.html does not exist
>>
>> I have a text file /home/awilliam/public_html/rgfaids containing
>> URLs such
>> as:
>>
>> http://zed/htdocs/rgfindingaids/series594.html
>> http://zed/htdocs/rgfindingaids/ser391.html
>> http://zed/htdocs/rgfindingaids/ser392.html
>>
>> and I can bring up these URLs fine in a browser on the PC i'm running
>> the
>> script on.

Here's the thing though:

Does your SERVER know anything about 'zed'?

Maybe you've configured your PC's 'hosts' file so it knows that 'zed'
means 192.168.1.47 (or whatever) but did you configure your server's
'hosts' files to know that?

Log in to the server with SSH and do:
nslookup zed
and see what you get.

If the operating system has no idea where 'zed' is, then PHP sure won't be
able to figure it out.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux