下面是代码,我在这里遗漏了什么
$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
最佳答案
使用如下路径:
/home/gartneryrket/public_html/digitalemagasiner/resources/uploads/releases/zipfiles/1484716981/index.html
对我有用。