|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2006-07-25 10:28 UTC] tommi dot korhonen at iki dot fi
  [2006-07-25 10:28 UTC] tony2001@php.net
  [2006-07-25 10:40 UTC] tommi dot korhonen at iki dot fi
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 02:00:02 2025 UTC | 
Description: ------------ When running a script from command line (eg. c:\php\cli\php.exe domxml.php) the DOMXML functions don't work. I get error message Fatal error: Call to undefined function: domxml_open_file() in C:\temp\domxml.php on line 4 All needed dlls should be available, since DOMXML works fine when running on web server (Apache2, PHP as CGI). DOMXML extension is also reported available in phpinfo() on web server but not in cli\php.exe -i Reproduce code: --------------- <?php $in = file_get_contents($argv[1]); // create XML-DOM object from a file if (!$dom = domxml_open_file($in)) { exit("Couldn't load infile"); } ?>