RE: [PHP] Case-Insensitive include on linux.
| From: | George Pitcher | Date: | Wed, 11 Jan 2006 08:16:56 +0000 |
| Subject: | RE: [PHP] Case-Insensitive include on linux. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-228454@lists.php.net to get a copy of this message | ||
Mathijs wrote:
> Is there a way to have include() be case-insensitive?
If you are know that all your file and directory names are lower case, but
users may input mixed case responses that will be used to determine the
include, you can set the case of the user input to lower case with
strtolower(). Or strtoupper() - the choice is yours.
If you have been a bit careless in naming your directories or filenames,
then I'd do some site maintenance and get that sorted first.
George