Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2000121

Re: [PHP-DB] file_exists()??any wildcards From: Gary Cooke (gcooke <email protected>)
Date: 12/11/00

Thanks.

<php3 <email protected>> wrote in message
news:912sra$b8q$1 <email protected>
Addressed to: "Gary" <kcooke <email protected>>
              php-db <email protected>

** Reply to note from "Gary" <kcooke <email protected>> 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 <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>