PHP Classes

File: class.cleanurl.php

Recommend this page to a friend!
  Classes of Huda M Elmatsani  >  Clean URL  >  class.cleanurl.php  
File: class.cleanurl.php
Role: Class source
Content type: text/plain
Description: class itself
Class: Clean URL
Transform URLs to make them search engine friendly
Author: By
Last change: //improve in handling extension to resolve filename like aaa.bbb.php
/* if extension is found in URL, eliminate it */
if(strstr($uri,".")) {
$arr_uri = explode('.', $uri);
/* get last part */
$last = end($arr_uri);
if($last == $ext){
array_pop($arr_uri);
$uri = implode('.', $arr_uri);
}
}
Date: 17 years ago
Size: 3,881 bytes

You need to be a registered user and login to get this file.

1,596,261 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.