RE: [PHP] How do you read one of these parameters?

From: Date: Fri, 11 Feb 2005 16:07:06 +0000
Subject: RE: [PHP] How do you read one of these parameters?
Groups: php.general 
Request: Send a blank email to php-general+get-208523@lists.php.net to get a copy of this message
From: Brian Dunning [mailto:brian@briandunning.com] > 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? My best guess is that it's being converted by Apache using mod_rewrite. For one of my websites, for instance, I have mod_rewrite convert /op_ed/123 to /op_ed/index.php?id=123. It's more search engine-friendly, for one, and an easier structure to remember for non-techie folks. More on mod_rewrite here: http://httpd.apache.org/docs/misc/FAQ.html#rewrite-more-config This is Apache-specific, but I'd imagine there are similar methods for other webservers. -- Mike Johnson Smarter Living, Inc. Web Developer www.smartertravel.com mike@smarterliving.com (617) 886-5539

« previous php.general (#208523) next »