Jump to content

upper/lowercase file names problem


Disent

Recommended Posts

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

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 :P And when you add new images, either convert their name to lowercase when saving, or store nonlowercased path in database.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.