Пишу:
$file = 'http://www.имя сайта';
$contents = file_get_contents($file);
echo $contents;
пишет ошибку - в файле
или же
echo "some text here<br>";
$c = file_get_contents("http://yahoo.com");
echo " - >>> $c";
пишет ошибку -
some text here
Warning: file_get_contents(http://yahoo.com): failed to open stream: Connection timed out in /home/dealers/public_html/grabber/test2.php on line 6
- >>>
$file = 'http://www.имя сайта';
$contents = file_get_contents($file);
echo $contents;
пишет ошибку - в файле
или же
echo "some text here<br>";
$c = file_get_contents("http://yahoo.com");
echo " - >>> $c";
пишет ошибку -
some text here
Warning: file_get_contents(http://yahoo.com): failed to open stream: Connection timed out in /home/dealers/public_html/grabber/test2.php on line 6
- >>>