JTo
05-22-2007, 03:17 PM
Code
<?php
if (file_get_contents("http://example.com/")){
echo "Working!";
}else{
echo "Why, why, why?";
}
?>
For some reason I get error_message Warning: file_get_contents(http://example.com/) [function.file-get-contents]: failed to open stream: Host is down in.
Tried it without my own firewall.
In php.ini:
allow_url_fopen = On
safe_mode = Off
What is could be cousing this problem?
(And yes, I have tried it with n-number of url -> not working at my home computer, but works perfectly at server; so the problem is definetly at my computer, but...?)
<?php
if (file_get_contents("http://example.com/")){
echo "Working!";
}else{
echo "Why, why, why?";
}
?>
For some reason I get error_message Warning: file_get_contents(http://example.com/) [function.file-get-contents]: failed to open stream: Host is down in.
Tried it without my own firewall.
In php.ini:
allow_url_fopen = On
safe_mode = Off
What is could be cousing this problem?
(And yes, I have tried it with n-number of url -> not working at my home computer, but works perfectly at server; so the problem is definetly at my computer, but...?)