0

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);

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?

4
Contributors
4
Replies
5
Views
12 Years
Discussion Span
Last Post by michelleradu
0

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.

Edited by Nick Evan: Fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.