Re: HTTP Include Error

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

 



Suhas wrote:
Hi

This issue has been discusses many times before, but no perticular
solution found.

include '/www/.............../file.php'  => works fine
include 'http://google.com/'  => works fine

include 'http://myserver.com/file.php' =>

Warning: main(http://myserver.com/file.php): failed to open stream:
HTTP request failed! HTTP/1.1 404 Not Found in /www/myserver/file2.php
on line 4

Warning: main(): Failed opening 'http://myserver.com/file.php' for
inclusion (include_path='') in ..................... 4

allow_url_fopen  = ON
The file is on same machine. It is not a file access prblem, I have
ried with OPEN (777) permissions.

Can anyone please shed some light on this?

Thanks
SP


the file not was found, it's not a php problem, but rather apache or dns misconfiguration. You can try


wget http://myserver.com/file.php

from the server shell and you should see the same response.

--
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