I have two classes in my system. One is called file and second is File. On my localhost when i instantiate file i get file object, but my friend running the same script gets
Classnames in PHP are not case sensitive (that doesn't depend on the operating system)
class myclass {}
$x = new MYclaSS;
var_dump($x);
object(myclass)#1 (0) {
}
so as general advice: You shouldn't start and try to mix something there :)
Code like this should not work:
class ab {}
class AB {}
Fatal error: Cannot redeclare class AB in ... on line x