How to get the /2/xxx part in filename.php?
It's not $_GET or $_POST
How to get the /2/xxx part in filename.php?
It's not $_GET or $_POST
You have to turn on mod_rewrite engine. The file.name.php isn't the file that the server will actually execute otherwise.
You would normally get it from the SERVER vars, but you can't do that for what you have because presumably you actually want filename.php to be the loaded script.
Look at this article: http://articles.sitepoint.com/article/guide-url-rewriting
There are lots more out there.
$_SERVER['PATH_INFO']
Note that AcceptPathInfo must be On for this to work.