note 33073 deleted from function.domxml-open-file by sobak

From: Date: Tue, 22 Nov 2016 03:40:47 +0000
Subject: note 33073 deleted from function.domxml-open-file by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207401@lists.php.net to get a copy of this message
Note Submitter: kevin at ieqdev dot com ---- 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

« previous php.notes (#207401) next »