Re: Permanent Links - Blog
| From: | Myron Turner | Date: | Thu, 09 Nov 2006 03:05:40 +0000 |
| Subject: | Re: Permanent Links - Blog | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244415@lists.php.net to get a copy of this message | ||
Extra information, constructed as path info, is returned by the apache PATH_INFO environment variable.
Assume this script is called path_info.php:
<H2>PATH_INFO</H2>
<H3>
<?php echo $_SERVER['PATH_INFO'] . "\n"; ?>
</H3>
Call it with the following URL:
http:/my_server/path_info.php/news-item/june3/2005
It will return the following to the screen:
PATH_INFO
/news-item/june3/2005
Myron
Raphael Martins wrote:
Hi, How do I implement that "http://myhost/blog/date/of/post/name-of-the-post" thing, instead of "http://myhost/blog/view.php?id=id-of-the-post" ? I´ve seen this in many blogs, but it´s easy to implement? See it in action at wikipedia, blogger blogs, simplebits <http://www.simplebits.com>. Both simplebits and wikipedia is written in PHP, I guess. Heeeeelp! Thank you-- _____________________ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/