Get Absolute Directory Path of Current File in PHP

1 · Subin Siby · March 15, 2014, 4:35 a.m.
If your code is including other files, you will encounter problems like "The file is not found". This is because, PHP doesn’t know the absolute path of file. So, if you are including files on another file, you should mention the absolute path of file. But, If you’re PHP application is being used by other people, then the absolute path which you mentioned in your system won’t be the one of the others’ systems....