Re: How do you read one of these parameters?

From: Date: Fri, 11 Feb 2005 16:45:46 +0000
Subject: Re: How do you read one of these parameters?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-208535@lists.php.net to get a copy of this message
Brian Dunning wrote: > I see URLs formatted like this: > > http://tinyurl.com/xyz > > How do you read that "xyz," since there's no "/?x=" preceding it? Is > it > not a get parameter? If you can't do mod_rewrite you can use: http://tinyurl.com/index.php/xyz with: <?php echo $_SERVER['PATH_INFO'];?> I use it all the time, especially to pass parameters to dynamic images and PDFs so that Microsoft Internet Explorer (various versions) can't screw up. BAD: http://example.com/dynamic_pdf.php?record_id=1 GOOD: http://example.com/dynamic_pdf.php/record_id=1/fool_ie.pdf -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#208535) next »