Re: file_exists()??any wildcards

From: Date: Mon, 11 Dec 2000 16:57:52 +0000
Subject: Re: file_exists()??any wildcards
Groups: php.db 
Request: Send a blank email to php-db+get-5149@lists.php.net to get a copy of this message
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

« previous php.db (#5149) next »