954,576 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Cannot load XML file.

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?

michael123
Junior Poster in Training
94 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 
bwest
Junior Poster in Training
57 posts since Jul 2004
Reputation Points: 14
Solved Threads: 1
 

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.

michelleradu
Junior Poster in Training
55 posts since Dec 2009
Reputation Points: 10
Solved Threads: 5
 

just use xml......function in php no need to use DOM

phpbeginners
Posting Whiz in Training
226 posts since Jul 2009
Reputation Points: 12
Solved Threads: 32
 
just use xml......function in php no need to use DOM


thanx, i'll try that.

michelleradu
Junior Poster in Training
55 posts since Dec 2009
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You