Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Benjamin Falk  >  Relink  >  example.php  
File: example.php
Role: Example script
Content type: text/plain
Description: An example script, using the class
Class: Relink
Rewrite URLs based on mod_rewrite configuration
 

Contents

Class file image Download
<?php
    
require_once 'class.relink.php';
    
    
$htaccessFile    './htaccess-example';
    
$c_relink        = new RELINK($htaccessFile);
    
    echo 
'<a href="'.$c_relink->replaceLink('?page=blog').'">View blog</a> | ';
    echo 
'<a href="'.$c_relink->replaceLink('?page=blog&mode=edit').'">Edit Blog</a> | ';
    echo 
'<a href="'.$c_relink->replaceLink('?info&value=all').'">Show all information</a>';
?>