Everyone know the $_SERVER['REQUEST_URI']
returns the parent directory and file name ex: directory/class/method
<-- MVC Pattern.
I want $_SERVER['REQUEST_URI']
returns like $_SERVER['PATH_INFO']
.
I know maybe someone says why you don't use $_SERVER['PATH_INFO']
?
because the web server unfortunately does not support PATH_INFO
.
I want class/method
not directory/class/method
.
Note that the directory may be present and maybe not. Therefore must check first if the directory present or not.