PHP Classes

File: news.php

Recommend this page to a friend!
  Classes of Huda M Elmatsani  >  Clean URL  >  news.php  >  Download  
File: news.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: 17 years ago
Size: 435 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?><?echo $link=CleanURL::makeClean('news.php?id=120&page=2');?>"><?=$link?></a>

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