[phpXML]
Brought to you by:
bs_php,
nigelswinson
From: <Geo...@sq...> - 2001-10-08 17:59:30
|
IS ENYBODY WORKING WITH <phpXML/>. UNDER Windows NT ??????????? I am writing a php4-script using XML-files under Windows NT without using WEB-server. I was very interested by <phpXML/>.,but I can't start it with php.exe for Windows NT . PHP-interpreter gives warnings: "Undefined index " in function add_node ( $context, $name ). The function begins on line 430 in xml.php. Warnings are on lines 443, 456, 464 : 442: // Set the relative context and the position. 443: $position = ++$this->ids[$path]; ... 453: // Calculate the position for the following and preceding axis 454: // detection. 455: $this->nodes[$fullpath]["document-position"] = 456: $this->nodes[$context]["document-position"] + 1; ... 464: if ( !$this->nodes[$context]["children"][$name] ) For example on line 464 it is now: if ( !$this->nodes[$context]["children"][$name] ) It most be : if ( !isset($this->nodes[$context]["children"][$name]) ) But how must be changed the other lines ? Can you send me a revised version of xml.php compatible with php.exe for Windows NT?. Or - if it is easyer - can you pont me a Web-site to download a version of php4 for Windows NT compatible with the xml.php ? I will be happy to receive your answer. Yours Georgi Lazarov |