Posted by oswald on 01/09/06 04:51
David Haynes <david.haynes2@sympatico.ca> napisal(a) w wiadomosci
news:w7kwf.8107$Gm2.2510@fe47.usenetserver.com:
>>
> In that case, I'm not sure what you are trying to attempt in the second
> part. Perhaps you could elaborate?
>
> -david-
>
>
ok.
the user inputs the player name ( $playername - string )he wants to find.
the script is searching for the string among the files in the current
directory (jpg files, every single one contains a name in the filename -
for example JOHN_SMITH.jpg).
so what i'm trying to do is :
read directory -> put file names in array - part one
second part
search for $playername in $images
if any part of $playername is found within that array ($images()) then
put the whole record it was found in a new array - ($players()) and then
display contents (full file names) on the screen.
so if user inputs "SMITH" and one of the filenames in the array is
JOHN_SMITH.jpg then put the JOHN_SMITH.jpg in the new array.
hope I was clear enough.. as I said, i'm a noob ...
--
oswald
gg: 7777 | I deny the current reality and substitute it with my own.
Navigation:
[Reply to this message]
|