note 110490 added to function.glob

From: Date: Mon, 29 Oct 2012 00:26:32 +0000
Subject: note 110490 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-191566@lists.php.net to get a copy of this message
glob($dir . '/.*'); will match . and .. on linux this can be fixed by using glob($dir . '/.[^.]*'); matching at least two characteres, only the first of which can be . for some reason this behaves differently on windows (appears that [^.] matches either . or ^), i do not know a solution for this asside from manually stripping . and .. from the output ---- Server IP: 113.20.13.217 Probable Submitter: 2001:44b8:4196:e800:edc9:68de:ddb5:2e6b ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/110490 Del: integrated -- https://master.php.net/note/delete/110490/integrated Del: useless -- https://master.php.net/note/delete/110490/useless Del: bad code -- https://master.php.net/note/delete/110490/bad+code Del: spam -- https://master.php.net/note/delete/110490/spam Del: non-english -- https://master.php.net/note/delete/110490/non-english Del: in docs -- https://master.php.net/note/delete/110490/in+docs Del: other reasons-- https://master.php.net/note/delete/110490 Reject -- https://master.php.net/note/reject/110490 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#191566) next »