[Comoblog-commit] comoblog/admin/include xml2array.inc.php, 1.2, 1.3
Status: Inactive
Brought to you by:
markwallis
|
From: Mark W. \(a. serialmonkey\) <mar...@us...> - 2008-02-19 06:06:12
|
Update of /cvsroot/comoblog/comoblog/admin/include In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv1742 Modified Files: xml2array.inc.php Log Message: Cleanup of stray logging Index: xml2array.inc.php =================================================================== RCS file: /cvsroot/comoblog/comoblog/admin/include/xml2array.inc.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- xml2array.inc.php 17 Nov 2006 00:50:46 -0000 1.2 +++ xml2array.inc.php 19 Feb 2008 06:05:59 -0000 1.3 @@ -53,20 +53,15 @@ } function GetXMLTree($xmlloc){ - error_log("checking this exists" . $xmlloc); if (file_exists($xmlloc)){ - error_log("it does" . $xmlloc); $data = implode('', file($xmlloc)); - } else { - error_log("it doesnt " . $xmlloc); + } else { $fp = fopen($xmlloc,'r'); while(!feof($fp)){ - error_log("reading file " . $xmlloc); - $data = $data . fread($fp, 1024); - } + } fclose($fp); - } + } $parser = xml_parser_create('ISO-8859-1'); xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); @@ -86,4 +81,4 @@ return $tree; } } -?> \ No newline at end of file +?> |