CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Warning: DOMDocument::load()
tannercampbell
Permalink to comment
#
June 2011
This is way outside my arena -- anyone have any ideas? Here's a screenshot -- I can't link to the site because it's live and I don't want this issue visible when I'm working on it unless it absolutely has to be.
http://designucation.com/php-dom-issue.jpg
Thanks!
tannercampbell
Permalink to comment
#
June 2011
oh, wait, is it just telling me that DOM isn't enabled in php? Ah, I don't know if my clients crappy host lets me access this !! :(
tannercampbell
Permalink to comment
#
June 2011
I don't know how to enable DOM, help please! I'm in PHPmyadmin now.
tannercampbell
Permalink to comment
#
June 2011
Well ... I did a phpinfo query and found that DOM/XML IS enabled ... any thoughts? Anybody?
ddliu
Permalink to comment
#
June 2011
Your php configuration don't have "allow_url_fopen" turned on, so you cann't load a url with DOMDocument.
You may either set "allow_url_fopen" to ON in php.ini or use cUrl instead.
If you have cUrl installed, you can get remote file content with cUrl, and then use
<?php
DOMDocument::loadXml($content);
tannercampbell
Permalink to comment
#
June 2011
Too advanced for me ddliu -- I gave into a flash gallery .... for shame, I know.
ddliu
Permalink to comment
#
June 2011
It's OK, the plugin you use before is not compatible with your server configuration, use another program is a good choice.
Add a Comment
http://designucation.com/php-dom-issue.jpg
Thanks!
You may either set "allow_url_fopen" to ON in php.ini or use cUrl instead.
If you have cUrl installed, you can get remote file content with cUrl, and then use