News Feed
Jobs Feed
Sections




Recent Jobs

News Archive
SocialGeek.be:
Clean urls through readable slugs in PHP
January 06, 2009 @ 14:28:16

On the SocialGeek blog there's a recent post that looks at making stubs for your URLs, making them easier to read and remember.

This is where the fun begins of course. How many times have you been confronted with someone sending you an indecipherable, thus untrustworthy link? Right, so we agree that for a user, it is important to have a clean URL that is readable and includes the title of the page or (at least) some description related to the content. Slug time!

They explain what slugs are (and how they're useful for users) as well as how to convert a title into a "slugged" string by replacing anything that's not an A-Z or 0-9 character to remove the less URL friendly characters.

0 comments voice your opinion now!
clean url readable slug tutorial regular expression



Similar Posts

PHP-Coding-Practices.com: How I Turned A Slow Array Sort Into A Quick One Using Quicksort Algorithm

Version Control Blog: Upgrading Drupal with Git

Enrico Zimuel's Blog: Convert a spool file to PDF using PHP on i5/OS

DevShed: Building PDF Documents with PHP 5

WebProNews.com: Form Checking - Verifying Name Using PHP Ereg


Community Events









Don't see your event here?
Let us know!


facebook developer wordpress windows zendframework symfony drupal feature extension release podcast conference framework apache microsoft codeigniter opinion performance job hiphop

All content copyright, 2010 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework