473,396 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

PHP remote Include fails - telnet/web browser succeeds

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

Nov 22 '05 #1
0 1268

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ryan Stewart | last post by:
I'm running MySQL server on a WinXP box at home. I have a cable modem/router. I've set up port forwarding on port 3306 to the machine running MySQL. I can connect locally just fine, but when I try...
8
by: Stephen Long | last post by:
I'm looking for information on how i can open a remote command shell <cmd.exe> on a remote pc and perform basic DOS/Shell commands .. TIA Steve
6
by: Sarah | last post by:
I have an old Lantastic 8.0 DOS based server and clients are able to login to this system through network booting (i.e. they are disk-less PC's). Is it possible to create a VB.Net program that can...
9
by: RvGrah | last post by:
After much hair-pulling, I've finally found the answer to a problem that many are fighting with, difficulty connecting from Sql 2005 Server Management or VS2005 to a remote Sql Server running Sql...
1
by: james2 | last post by:
I am trying to write a perl script that will do remote machine. I have done user loging using simple command; $telnet->login('test', 'test123'); But now I want to do root login or superuser...
2
by: thilandeneth | last post by:
i need to do telnet via a web server please give me a idia to initiate the project following requirements are needed 1 Create web based custom telnet client to communicate with remote...
7
by: ajays | last post by:
I have a situation where i have to execute a Batch script on Remote Windows Machine (MACH2) from my local machine (MACH1). I was able to do this from windows machine to Linux machine but not able to...
1
by: thamayanthi | last post by:
Hi, Please find the below code which is used to Print the Operating System of a remote Machine of linux.This code is working fine,if i give the correct UserName and Password of a machine but what...
6
by: sherrygomindes | last post by:
Hi I have written a perl script using the Telnet module. I need to remotely login in from one windows XP machine to another XP machine. But i get errors which i can't figure out the reason....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.