Re: [phplib] OT: Number URL's.... From: Jens Benecke (jens <email protected>)
Date: 05/29/01

On Sun, May 27, 2001 at 03:17:20PM -0400, HurricaneIndy <email protected> wrote:
 
> /aboutus/jobs/story/0,23350,2436118,00.html
> What exactly is the meaning of all this? How come that page is using numbers
> as the name of the page. And what kinda organization scheme is this?? It's a
> pretty boring Sunday so I figured I'd ask. Also, how does "one" derive such
> numbers in the first place? Thanks...

I guess the file comes out of a database, and the .html is just appended to
fool stupid browsers (e.g. IE) into thinking it's a static html page.

You can do the same, if you call

/foo/bar.php/2039,6819,2958,2862.html

in bar.php, $PATH_INFO will contain 2039,6819,2958,2862.html. You can then
strip the .html and look up the entry with those numbers in a database.
This is practically the same as calling

/foo/bar.php?id=2039,6819,2958,2862

where $id will contain the numbers, only that by NOT using the ? character
you will fool cache servers and search engines into thinking the page is
static, so that it's indexed / cached and not ignored.

-- 
Jens Benecke             /* Nobody will ever see this error message :-) */
                            panic("Cannot initialize video hardware\n");
                                  -- Linux 2.0.38,  arch/m68k/atari/atafb.c
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored