DOMDocument loadHTMLFile всегда возвращает false

Ниже приведен код, что мне здесь не хватает

$doc = new DOMDocument();
// this has file permission 644 previously, and changed to 755
$doc->loadHTMLFile('http://gartneryrket.no/digitalemagasiner/resources/uploads/releases/zipfiles/1484716981/index.html');
// same code is working in another site
// when I specify path not url then its working

3

Решение

Используйте путь как:

/home/gartneryrket/public_html/digitalemagasiner/resources/uploads/releases/zipfiles/1484716981/index.html

Меня устраивает.

1

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector