I am chking if a file exists or not using
the filename is abc.JPG
in the code , it is checking for abc.jpg
while actually it is abc.JPG, so a difference in case.
This is just an example, there are many files which uses this function and all are chking for '.jpg' while all the images in the system have '.JPG' and some have '.jpg'
The fileexist is returning false because of this case difference , whereas it should return true.
Can anyone suggest me an easy way, so that without changing much I can make the file_exists function case insensitive ??
Please answer asap.