You are here: Re: Pretty URLs « PHP Programming Language « IT news, forums, messages
Re: Pretty URLs

Posted by Laeronai on 11/06/26 11:41

If I used your example, Janwillem, would I include "redirect.php" on
every page? I'm kinda new to PHP, not really sure how to do this kinda
fancy stuff. But I can figure it out.

If I wanted to use /YYYY/MM/title as the format, then I guess I could
retrieve it from the database where the id has to match the one in the
URI, but once I had the date in DATETIME format like YYYY MM how could
I separate the two into two different variables?

Somehow I'd end up with $year and $month, and $title, which would
transform the original title to something all lowercase and hyphens
where all the spaces should be, so "Hello Bob" would become
"hello-bob." Once I had that, I suppose I could use your code.

What does the "#^" mean, and the "(\d+)" mean? I'm a bit confused.

If I were to use mod_rewrite, and I have absolutely no experience in
Apache, how would I use it?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация