以下是代码,我在这里缺少
$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
答案 0 :(得分:1)
使用路径如:
/home/gartneryrket/public_html/digitalemagasiner/resources/uploads/releases/zipfiles/1484716981/index.html
它对我有用。