livewirerules Posted March 17, 2010 Share Posted March 17, 2010 When i try to load a url thru $dom->loadHTMLFile($url); i get the below error Warning: DOMDocument::loadHTMLFile() [domdocument.loadhtmlfile]: I/O warning : failed to load external entity any reason why?? Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/ Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 Its simply failing to load. Does the url definitely exist? Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/#findComment-1027468 Share on other sites More sharing options...
livewirerules Posted March 17, 2010 Author Share Posted March 17, 2010 im trying to load www.google.com Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/#findComment-1027471 Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 There likely blocking requests not made by legitimate browsers. Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/#findComment-1027473 Share on other sites More sharing options...
livewirerules Posted March 17, 2010 Author Share Posted March 17, 2010 Not only google.. all the sites i try to load gives me the same error.. Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/#findComment-1027474 Share on other sites More sharing options...
trq Posted March 17, 2010 Share Posted March 17, 2010 Ive not used DOMDocument::loadHTMLFile() but it doesn't seem (from the manual) to be able to load files via a url. It wants a path to a file. Quote Link to comment https://forums.phpfreaks.com/topic/195539-io-warning-failed-to-load-external-entity/#findComment-1027480 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.