note 33073 added to function.domxml-open-file
| From: | kevin at ieqdev dot com | Date: | Sun, 15 Jun 2003 21:30:51 +0000 |
| Subject: | note 33073 added to function.domxml-open-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-50397@lists.php.net to get a copy of this message | ||
If you're working on a windows machine and don't want to use full paths , just use...
$showfile = file_get_contents($path . "/" . $fileName);
if(!$domDoc = domxml_open_mem($showfile)) {
echo "Couldn't load xml...";
exit;
}
Because file_get_contents() can use relative paths on Win, it keeps your code more portable...
twist
----
Manual Page -- http://www.php.net/manual/en/function.domxml-open-file.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33073
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33073&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33073&report=yes