this question has answer here:
for reason file_exists , class_exists both case sensitive if place website on server (hosted transip), if upload them xampp methods case insensitive. know why? i'm struggling long time , haven't found answer yet.
thanks help!
yours faithfully,
joost
file_exists()
's case sensitivity depends on filesystem:
- on unix-like systems filesystem case sensitive
- on windows it's case insensitive (ntfs)
class_exists()
case insensitive invoke autoloader, might use file_exists()
internally => making class_exists()
seem case sensitive on filesystems.
the solution treat class names being case sensitive avoid potential issues.
Comments
Post a Comment