note 37347 added to function.domxml-open-file
| From: | jon at hiveminds dot net | Date: | Tue, 11 Nov 2003 18:45:10 +0000 |
| Subject: | note 37347 added to function.domxml-open-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-60256@lists.php.net to get a copy of this message | ||
A simpler way to use this function without having to supply a system path:
<?php
$xmlfile = "xmlfiles/myfile.xml";
$mydoc = domxml_open_file( realpath($xmlfile) )
or die("Couldn't load $xmlfile...");
// do stuff with $mydoc...
?>
This works on Windows and Linux servers, and ports between them.
----
Manual Page -- http://www.php.net/manual/en/function.domxml-open-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37347
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37347&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37347&report=yes
Search -- http://master.php.net/manage/user-notes.php