Ave,

Yes well, I did kind of figure out that I have to scan through contents of a
directory, pull up a file list, and then do some kind of pattern matching to
narrow down to the files I need. But at this moment I'm kinda struggling
with the directory & file functions - haven't really dwelled into those
deeply before. 

But yes, your suggestions seem more then likely what I'll be hitting at some
stage. 

Thanks.


On 3/29/07 3:22 PM, "Brad Bonkoski" <[EMAIL PROTECTED]> wrote:


> I'm sure there are many options...
> I'm also assuming you are pulling from a file system and not a database...
> So, loop through the directory and do something like this:
> $phone_num = XXX
> $cur_file = xxx
> if( strncmp($phone_num, $cur_file, strlen($phone_num)) == 0 )
>     //Matches
> else
>     //No Match
> 
> Ref: http://us3.php.net/manual/en/function.strncmp.php
> (for case insensitive:
> http://us3.php.net/manual/en/function.strncasecmp.php)
> -B

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to