Author |
Message |
Topic: Connection timeout problems with fopen() |
GoroUnreal
Replies: 6
Views: 12093
|
|
It could be the firewall disallowing PHP access to the internet. Temporaly disable it and try again. If not, then try another version of PHP, try version 4.
Disabling firewall didn't help =/ and I ... |
Topic: Connection timeout problems with fopen() |
GoroUnreal
Replies: 6
Views: 12093
|
|
Nope =/ I changed your code to:
<?
$url="http://myip:port/index.php";
$check = file_get_contents($url);
if($check)
{
print "Server online&qu ... |
Topic: Connection timeout problems with fopen() |
GoroUnreal
Replies: 6
Views: 12093
|
|
Try using readfile(), you might have better results.
Is that the exact code you are using? If so it looks like you have a syntax error.
if (!fopen("http://myipaddress:portnu ... |
Topic: Connection timeout problems with fopen() |
GoroUnreal
Replies: 6
Views: 12093
|
|
I'm using the following code in a php file on another server (outside my network), i'm using it to see if the index.php file exists (which would mean the server is online) and if it is print "ser ... |
|