Anubislg Posted August 19, 2007 Share Posted August 19, 2007 Hello everyone, I've tried to look everywhere for this, but I'm coming up empty handed. I'm running Apache 2.2.4 with PHP 5.2.3 (Win XP SP2), and everything save for one little things looks to work just fine. Basically, I have a PHP script on my main website (http://www.emurade.com/FRSmini.php) that calls for a TXT file on my Apache (home) server using just a standard fopen. Now...when I upload the TXT file to another webserver of mine (not-local/not hosted by me), the script is able to pull from the other website just fine. BUT...when I try and pull the file from my APACHE server....well...nothing happens at all! I don't even get an error in the log, or for that matter, an access attempt in the log! Nor do I get an error from the PHP script! The file in question is called Chat.0.log, just incase that has anything to do with it. Any idea's? Thank you kindly, Anubis Quote Link to comment Share on other sites More sharing options...
trq Posted August 19, 2007 Share Posted August 19, 2007 How are you trying to access this server? Are you sure your firewall is not blocking it? Are you behind a router that isn't forwarding the request? There could be any number of reasons really. Quote Link to comment Share on other sites More sharing options...
Anubislg Posted August 20, 2007 Author Share Posted August 20, 2007 Hello Thorpe, Thank you for your response! The firewall isn't an issue, since I (and many others outside my home network) can access the Apache Server directly with no problems at all, and the port forwards are working great, too. Also, calling a PHP script from the Apache Server works beautifully also (as does calling a PHP script from Emurade). It's just that when-ever the script on Emurade.com tries to get the TXT file from my apache server...it fails most horribly! The PHP script I'm using to call the TXT file from emurade is: $filename = "http://154.54.154.54:8080/Chat.0.log"; $fp = fopen( $filename, "r" ) or die(" Error: Unable to start the ICRS. Please contact the administrator at anubislg@thisisafakeaddress.com"); Note the IP addie is changed for the sake of posting on here. There's also more to the script, but I figure it's less of a PHP problem, and more of an Apache problem (due to the reasons in my first post). Quote Link to comment Share on other sites More sharing options...
steviewdr Posted August 20, 2007 Share Posted August 20, 2007 Is there a firewall on emurade blocking incoming 80? This is typical for web servers. To test, you'll probably have to do something like (put the following on emurade): system("wget http://yourserver.com/file"); or system("telnet yourserver.com 80"); -steve Quote Link to comment Share on other sites More sharing options...
Anubislg Posted August 20, 2007 Author Share Posted August 20, 2007 Ahhhh, I hadn't thought about that. Since it's using port 8080, the server that Emurade is on might not like it. Thank you! I'm pretty sure that's what the problem is, so I'll close the ticket. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.