Home >Backend Development >PHP Tutorial >Obtaining URI, compatible files exist in subdirectories
It is said that $_SERVER['REQUEST_URI'] can only be used in Apache (not tested), so it is only compatible with Apache.
http://example.com/URIRouter.php/Hello/World or http://example.com/dir/URIRouter.php/Hello/World Return value: Hello/World After setting .htaccess: http://example.com/Hello/World or http://example.com/dir/Hello/World Return value: Hello/World
|