note 49483 added to function.glob

From: Date: Sat, 29 Jan 2005 22:09:09 +0000
Subject: note 49483 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-84172@lists.php.net to get a copy of this message
Be aware... On Windows you need to add "/" mark: <?php $files = glob("/dir/*.txt"); // Works properly. $files = glob("dir/*.txt"); // Failure!, first letter is missing on every filename! ?> On Unix you cant add the "/" mark: <?php $files = glob("dir/*.txt"); // Works properly. $files = glob("/dir/*.txt"); // No files found! ?> Hope this will save your time :) ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49483 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49483&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49483&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49483&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49483&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49483&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49483&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84172) next »