I noticed that some sites (including the old http://careers.stackoverflow.com 1.0) have query strings that look like this:
http://somewebapp.example/?123
compared with:
http://somewebapp.example/123 or http://somewebapp.example/id/123
What are the reasons developers prefer to use the URLs of their web applications using the first example instead of the second and third examples?
And as a bonus, how to implement the first example in PHP, given that 123 is the primary key of some row in the database table? (I just need to know how to extract 123 from the URL, I already know how to query the database for 123 primary key.)
EDIT [5/28]:. Oh, I forgot that everyone knows that I know what the last two URLs are, how they work and how to implement them. Thanks for the reminders, although I think I had some unrelated misconceptions that were clarified anyway!
url php query-string
Boltclock
source share