codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Convert uploaded extension to lowercase

    29th May 2019

    Php - Strings

    php codehaven

    This code will change file extension from uppercase to lowercase.

    If there is a file called dog.JPG on my desktop, when I try to upload it fails. This script will convert it to a lowercase and upload it successfully.

    Remember this is only part of the script

    Was this code snippet helpful?