Hi i'm lookin for some advice on how to search for a file that has the extention of either .jpg or .gif on the server.
I'm toying in using file_exists however since i'm searching for a file that will either have the .jpg or .gif extention i'm not totally sure how to go about it. There is a naming convention set up so the name to the file doesn't matter at this particular point of time. However if the file is found it's then deleted.
Hope i explained that properly. Head feels a little swampy at the moment and being to php doesn't help, lol.
Thanks in advance
I'm toying in using file_exists however since i'm searching for a file that will either have the .jpg or .gif extention i'm not totally sure how to go about it. There is a naming convention set up so the name to the file doesn't matter at this particular point of time. However if the file is found it's then deleted.
Hope i explained that properly. Head feels a little swampy at the moment and being to php doesn't help, lol.
Thanks in advance