note 56097 deleted from class.dir by bjori

From: Date: Fri, 14 Apr 2006 22:08:05 +0000
Subject: note 56097 deleted from class.dir by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-108111@lists.php.net to get a copy of this message
Note Submitter: allyflyboy at hotmail dot com ---- instead of using a root path every time, you can use a real path to keep everything relative to each other. Like so <?php $real_path = realpath("../myfolder/"); $d = dir($real_path); echo "Handle: " . $d->handle . "\n"; echo "Path: " . $d->path . "\n"; while (false !== ($entry = $d->read())) { echo $entry."\n"; } $d->close(); ?>

« previous php.notes (#108111) next »