Networking Forums

Networking Forums > Computer Networking > Linux Networking > PHP remote Include fails - telnet/web browser success

Reply
Thread Tools Display Modes

PHP remote Include fails - telnet/web browser success

 
 
deja@chronofish.com
Guest
Posts: n/a

 
      11-20-2005, 04:31 PM
(I posted this to the PHP group and received no response, so hoping
that I'll have better luck here, as it is more about networking than
PHP)

Hello,

I have a script that does a remote include (does not matter if I do
include(), file(), require(), etc, the result is the same).

The script spins for a long time and then will finally return (edited
for internet consumption):

Warning: blahFunction(http://www.someserver.org/header): failed to open
stream: Connection timed out in
/var/www/html/project/functions/myscript.php on line 28

Warning: blahFunction(): Failed opening
'http://www.someserver.org/header' for inclusion
(include_path='.:/usr/local/lib/php') in
/var/www/html/project/functions/myscript.php on line 28

I can succesfully run the same logic from a different server, and this
had been working prior to our move. If I telnet from the server to
"www.someserver.org 80" and issue a "get /header'" the expected result
comes back immediately. Also if I go to
"http://www.someserver.org/header" in my browser (the browser is not
being run from the server but same subnet) I get the results that I
expect back immediately.

Because of the move, I suspect it has to do with DNS issues. It's not
a matter of waiting for names to propagate as we are resolving them
internally and - as shown above - they do indeed resolve as expected.

I would buy it if you told me that I had a reverse-DNS issue - I just
don't know how to go about resolving it.

So I guess I'm asking

1: Does it seem like a reverse-DNS issue?
2: If it is, then how do I go about resolving it?
3: If it is not, then what are my other possibilities?

And just out of curiosity -

4: Why would telnet be able to resolve this correctly, but not PHP?
Especially since both are being tested from the same box.

Thanks!
CF

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Event ID 8032 Browser service fails to retrieve backup list Meinolf Weber [MVP-DS] Windows Networking 0 09-17-2009 08:28 AM
Outlook Express can no longer send email; telnet to port 25 fails to get a response Mortimer Home Networking 9 08-02-2007 03:58 PM
Event ID 8032 Browser service fails to retrieve backup list Tom C. Windows Networking 2 03-14-2007 02:39 PM
browser-based authentication fails Bob Tennent Linux Networking 0 12-13-2006 08:01 PM
Re: dhcpd.conf include statement fails: No such file or directory Gareth Ansell Linux Networking 1 09-09-2003 01:42 PM



1 2 3 4 5 6 7 8 9 10 11