Re: file_exists()??any wildcards
| From: | Gary Cooke | Date: | Mon, 11 Dec 2000 18:19:57 +0000 |
| Subject: | Re: file_exists()??any wildcards | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-5153@lists.php.net to get a copy of this message | ||
Thanks.
<php3@developersdesk.com> wrote in message
news:912sra$b8q$1@toye.p.sourceforge.net...
Addressed to: "Gary" <kcooke@mediaone.net>
php-db@lists.php.net
** Reply to note from "Gary" <kcooke@mediaone.net> Sun, 10 Dec 2000
21:45:32 -0500
>
> Can someone tell me if file_exists( ) can use wildcards in the string
> file? And if so what are they? I want the system to look for a file
> with a known directory and the first six digits of the file name are
> known. But I want to end the file name with like *.*, but this did
> not work. Is there maybe another way?
Sorry, file_exists() looks for an exact file name. You probably need
to use opendir() readdir() and closedir() to read the directory and see
if a matching file exists.
Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net