U
U
Username2015-08-20 18:02:56
PHP
Username, 2015-08-20 18:02:56

How to ignore image format case?

Good afternoon, in general, there is a column in the database where the path to the image lies, as an example "/img/1.png" the file itself has the extension "1.PNG", the server on windows does not care about the extension case, but not the Linux server, which it is necessary to register in php so that the server does not care about the case of the extension?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kim, 2015-08-20
@kimono

$src = mb_strtolower($src);

J
jukanator, 2015-12-12
@jukanator

use rename() for files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question