Q:

PHP URL parameters as a command

I want to read the url in php like a command. For example, my htaccess makes it so my url is www.example.com/index (Index is really index.php ). 
I want it to be so I can execute some code based on the url. SO, if the url was www.example.com/index/poll/45678 then PHP would read it as, index -> find poll -> 45678 as a parameter. 

A:

Everything in the comments worked. It is called "PHP routeing". Google

