Страница 1 из 1

Cannot use file_get_contents(). Permission denied error.

Добавлено: Пн апр 13, 2015 12:18
orleon
Link:
http://orleon.ho.ua/
Code:
<?php
$url = "http://orleon.comze.com/";
$html = file_get_contents($url);
?>
Error:
file_get_contents(http://orleon.comze.com/): failed to open stream: Permission denied in /virt/homes/orleon/htdocs/index.php on line 6
The same error on stackoverflow:
http://stackoverflow.com/questions/2278 ... ates-xml-f
They said that the problem was on server. Could you resolve it?
Thanks.

Re: Cannot use file_get_contents(). Permission denied error.

Добавлено: Вт апр 14, 2015 22:11
dobs
Hello, on server not allowed remote connections.
fopen, file, file_get_contents can't work here...