You are here: Re: PHP remote Include fails - telnet/web browser succeeds « PHP Programming Language « IT news, forums, messages
Re: PHP remote Include fails - telnet/web browser succeeds

Posted by ChronoFish on 11/01/04 11:33

Hi Ewoud,

Those are good resources, but unfortunately they are no applicable.

Here are some more odd issues:

Background:
First of all the code is being run from
"http://someserver/project/myscript.php" and the "include" file is
"http://someserver/standard/header.php".

So yes I am including a file through the local webserver rather than
just including the php directly - this is by design (I know it sounds
strange, but the rest of the details are unimportant).

If I do a

gethostbynamel('http://someserver/')

the correct IP comes back instantly (lets say 192.168.1.50 for this
example). If I do a

file("http://192.168.1.50/project/header.php")

This will come back as expected. If I hit the box from a different
server with

file("http://someserver/project/header.php")

this will come back as expected. It's only when I do a

file("http://someserver/project/header.php")

from the server "someserver" (i.e. the script calls a script on the
same server) does the response time-out.

-CF

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация