PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Benjamin Falk   Relink   example.php   Download  
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
Author: By
Last change: Just added a new line for showing the new feature
Date: 15 years ago
Size: 389 bytes
 

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>';
?>