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: 19 years ago
Size: 3,881 bytes

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

Login Immediately with your account on: