diff options
author | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-08-29 09:08:40 +0000 |
---|---|---|
committer | cookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8> | 2006-08-29 09:08:40 +0000 |
commit | 53204d7bd348f0fab3f85d1900ec8bc3035faf08 (patch) | |
tree | b6b1cc1292ddeab0afadd3fa336a2dac5683ec2b /www-ssl | |
parent | e28cd035cb4bde5d974e800ce9728fe0020ad46d (diff) |
file wird noch mals ueberprueft
git-svn-id: svn://svn.cccv.de/engel-system@139 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl')
-rwxr-xr-x | www-ssl/inc/funktion_xml.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/www-ssl/inc/funktion_xml.php b/www-ssl/inc/funktion_xml.php index b9bb2ce5..12dbc254 100755 --- a/www-ssl/inc/funktion_xml.php +++ b/www-ssl/inc/funktion_xml.php @@ -110,9 +110,18 @@ function readXMLfile( $file ) $xml_parser = xml_parser_create("UTF-8"); xml_set_element_handler($xml_parser, "start_element_handler", "end_element_handler"); xml_set_character_data_handler($xml_parser, "character_data_handler"); - if (!($fp = fopen($file, "r"))) + + if (file_exists($file)) + { + if (!($fp = fopen($file, "r"))) + { + echo(" <h1>could not open XML file \"$file\"</h1>"); + return -1; + } + } + else { - echo(" <h1>could not open XML file \"$file\"</h1>"); + echo(" <h1>XML file \"$file\" not exist</h1>"); return -1; } |