note 80938 added to function.glob

From: Date: Thu, 07 Feb 2008 17:15:04 +0000
Subject: note 80938 added to function.glob
Groups: php.notes 
Request: Send a blank email to php-notes+get-135874@lists.php.net to get a copy of this message
Here's a function that behaves as a recursive glob(). It does rely on shell command find, but works like a charm. function glob_rec($pattern, $path) { return explode("\n", shell_exec("find $path -name $pattern")); } ---- Server IP: 129.16.214.50 Probable Submitter: 81.236.173.9 ---- Manual Page -- http://www.php.net/manual/en/function.glob.php Edit -- https://master.php.net/note/edit/80938 Del: integrated -- https://master.php.net/note/delete/80938/integrated Del: useless -- https://master.php.net/note/delete/80938/useless Del: bad code -- https://master.php.net/note/delete/80938/bad+code Del: spam -- https://master.php.net/note/delete/80938/spam Del: non-english -- https://master.php.net/note/delete/80938/non-english Del: in docs -- https://master.php.net/note/delete/80938/in+docs Del: other reasons-- https://master.php.net/note/delete/80938 Reject -- https://master.php.net/note/reject/80938 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135874) next »