944,103 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 10954
  • PHP RSS
Nov 2nd, 2005
0

Cannot load XML file.

Expand Post »
I turned on php Domxml module in php.ini and restart apache server, I can read domxml is enabled in phpinfo, however when I try to load XML file:
$dom = DOMDocument::load($_FILES['file']['tmp_name']);

it shows me the error message:
Fatal error: Call to undefined function: load() in c:\program files\apache group\apache\htdocs\bom\tool_rev_import.php on line 19

why the function load() is undefined? any help?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
michael123 is offline Offline
93 posts
since Jun 2005
Nov 2nd, 2005
0

Re: Cannot load XML file.

Reputation Points: 14
Solved Threads: 1
Junior Poster in Training
bwest is offline Offline
57 posts
since Jul 2004
Dec 16th, 2009
0

Fatal error: Call to undefined function: load() on line 184

Hi guys
I get this error when i run the following lines of code:

...
if ( $_FILES['file']['tmp_name'] )
{
$dom = DOMDocument::load($_FILES['file']['tmp_name']); //line 184
...
}
...


$_FILES['file']['tmp_name'] stores an uploaded Excel document.
Please help me on this.
Thanks.
Reputation Points: 10
Solved Threads: 3
Light Poster
michelleradu is offline Offline
41 posts
since Dec 2009
Dec 17th, 2009
0
Re: Cannot load XML file.
just use xml......function in php no need to use DOM
Reputation Points: 12
Solved Threads: 32
Posting Whiz in Training
phpbeginners is offline Offline
226 posts
since Jul 2009
Dec 17th, 2009
0
Re: Cannot load XML file.
just use xml......function in php no need to use DOM
thanx, i'll try that.
Reputation Points: 10
Solved Threads: 3
Light Poster
michelleradu is offline Offline
41 posts
since Dec 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP Error
Next Thread in PHP Forum Timeline: Retrieving information from another website





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC