Login   Register  
PHP Classes
elePHPant
Icontem

File: test.cleanurl.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Huda M Elmatsani  >  Clean URL  >  test.cleanurl.php  >  Download  
File: test.cleanurl.php
Role: Example script
Content type: text/plain
Description: example script
Class: Clean URL
Transform URLs to make them search engine friendly
Author: By
Last change:
Date: 2004-11-06 22:05
Size: 429 bytes
 

Contents

Class file image Download
<?php
require("class.cleanurl.php");

$clean = new CleanURL;
$clean->parseURL();
$clean->setRelative('relativeslash'); //relativeslash is variable name
$clean->setParts('id','page');
echo 
'result query string<br>';
echo 
'id = '.$id '<br>';
echo 
'page = ' $page '<br>';

?>
<br>
Example Clean URL usage:  <br>
<a href="<?=$relativeslash?><?=CleanURL::makeClean('test.cleanurl.php?id=120&page=2');?>">Link 1</a>