Posted by Csaba Gabor on 12/21/05 02:49
dylan wrote:
> Can anyone tell me if it's possible to enter a URL such as
>
> http://www.streetfish.co.uk/1234
> and take the number and pass it to the index.php script (where the
On Apache, there is an AcceptPathInfo=on directive, which should do
what you want (the corresponding variable in PHP is PATH_INFO - see
http://php.net/reserved.variables - notice they are also doing what you
want). Only it doesn't. I logged this as a bug at:
http://issues.apache.org/bugzilla/show_bug.cgi?id=8880 but it was
denied (they suggest a workaround at the bottom of the report). I
never did understand why they didn't want to do fix it.
I also didn't implement their suggestion because I now (as I suspect
most others) use url rewriting, a little of which is described at:
http://www.codecomments.com/archive227-2005-8-574178.html (of course,
there is more documentation at
http://httpd.apache.org/docs/2.0/urlmapping.html and
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html). There is
also a concrete example at:
http://mail-archives.apache.org/mod_mbox/httpd-users/200206.mbox/%3C20020624150117.87137.qmail@web10507.mail.yahoo.com%3E
Don't know what to tell you for non Apache.
Csaba Gabor from Vienna
[Back to original message]
|