PHP ActiveX
PHP ActiveX
Load XML from Local FilePath
Demonstrates how to load XML from a local XML file.Chilkat PHP ActiveX Downloads
<?php
$success = 0;
$xml = new COM("Chilkat.Xml");
// Pass either an absolute file path, or a file path relative from the current working directory of the caller.
$success = $xml->LoadXmlFile('qa_data/hamlet.xml');
if ($success == 0) {
print $xml->LastErrorText . "\n";
exit;
}
print 'Success.' . "\n";
?>