The URL after the current file is contained in $_SERVER['PATH_INFO']. E.G.:
Code:
if(starts_with($_SERVER['PATH_INFO'], '/user/register'))
if(@$_POST['action'] === 'register')
User::register_handler($_POST);
else
exit(User::register_form());
The user could then go to /path/to/your/script.php/user/register and get the register page. Removing that annoying '.php' from the URL is simply a case of forcing the handler:
Code:
<FilesMatch "^yourscript$">
ForceType application/x-httpd-php
</FilesMatch>
... and removing the .php extension from the bootstrap file.
Bookmarks