multiple extension filenames
Posted: Fri Mar 12, 2004 7:49 pm
in php
an image file could have the possible extensions .gif .jpg .jpeg, if im searching for a filename how can i make sure it has one of these extensions?
eg if im searching for the image src in a string containing all of the img tag parameters and the image could be one of these three extensions, how can i make sure it checks for all these variations?
thank you for any help
an image file could have the possible extensions .gif .jpg .jpeg, if im searching for a filename how can i make sure it has one of these extensions?
eg if im searching for the image src in a string containing all of the img tag parameters and the image could be one of these three extensions, how can i make sure it checks for all these variations?
thank you for any help