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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php