Disent Posted February 8, 2010 Share Posted February 8, 2010 Hello, This has little do with PHP, but i don't know and I'm too tired to go somewhere else now. The server is looking for images named "dcm_322.jpg" and gives a not found error, but the images are actually named(some of them) with capital letters "DCM_322.jpg" and i want it to know there's no difference between the two. I used to have the same problem with .JPG and .jpg endings but i fixed that with .htaccess. Theres no way i can manually change all the file names to lowercase because there are 5000 images. The image locations/names are stored on MySql database. Thank you and good night. Link to comment https://forums.phpfreaks.com/topic/191411-upperlowercase-file-names-problem/ Share on other sites More sharing options...
Mchl Posted February 8, 2010 Share Posted February 8, 2010 Theres no way i can manually change all the file names to lowercase because there are 5000 images. You can write a script to do it for you though And when you add new images, either convert their name to lowercase when saving, or store nonlowercased path in database. Link to comment https://forums.phpfreaks.com/topic/191411-upperlowercase-file-names-problem/#findComment-1009068 Share on other sites More sharing options...
Disent Posted February 9, 2010 Author Share Posted February 9, 2010 yeah i know, but was hoping there was an easier way like server settings. Link to comment https://forums.phpfreaks.com/topic/191411-upperlowercase-file-names-problem/#findComment-1009245 Share on other sites More sharing options...
teamatomic Posted February 9, 2010 Share Posted February 9, 2010 There is: 1. get shell access 2. google "perl one liners" HTH Teamtomic Link to comment https://forums.phpfreaks.com/topic/191411-upperlowercase-file-names-problem/#findComment-1009248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.