-Original Message-
From: Per Jessen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2008 1:43 AM
To: php-general@lists.php.net
Subject: Re: [PHP] file_exists and wildcard/regex
Ashley Sheridan wrote:
If you're on a Linux system, you could look at ls and the regular
-Original Message-
From: Boyd, Todd M. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 10, 2008 8:28 AM
To: php-general@lists.php.net
Subject: RE: Re: [PHP] file_exists and wildcard/regex
FWIW, I would probably do the file search like this (UNTESTED):
?php
$filereg
On 9 Dec 2008, at 22:26, Daniel Kolbo wrote:
What is the preferred method with php to test and see if a file
[pattern] exists?
For example, i only need to search in one directory, that may have
any number of files named such as afile1.txt, afile2.txt,
afile3.txt, And also,
Daniel Kolbo wrote:
What is the preferred method with php to test and see if a file
[pattern] exists?
For example, i only need to search in one directory, that may have any
number of files named such as afile1.txt, afile2.txt, afile3.txt,
And also, bfile1.txt, bfile2.txt, bfile3.txt,
On Tue, 2008-12-09 at 12:54 -1000, Daniel Kolbo wrote:
Daniel Kolbo wrote:
What is the preferred method with php to test and see if a file
[pattern] exists?
For example, i only need to search in one directory, that may have any
number of files named such as afile1.txt, afile2.txt,
I'm not sure how glob works in the guts, but I know it is dog-slow for large
numbers of files (or maybe just large numbers of results).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
I'm not sure how glob works in the guts, but I know it is dog-slow for
large numbers of files (or maybe just large numbers of results).
I'm not sure what the context of this was, but the speed of searching a
directory with a large number of files, e.g. 100,000s,
Ashley Sheridan wrote:
If you're on a Linux system, you could look at ls and the regular
expressions it lets you use with it. You could exec out and get the
returned results. Also, as it's a system call, it should be very
speedy.
'ls' is just a plain binary (/bin/ls), not a system call. The
8 matches
Mail list logo