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?

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.

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

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

thanx, i'll try that.