As long as you have mod_rewrite on Apache, you can use things like:
filename
filename.php/search/here
filename/search/here
... all of these from filename.php
The way you can get this information from PHP is by using either the REQUEST_URI or PATH_INFO:
$SERVER["REQUEST_URI"] $SERVER["PATH_INFO"]