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: 13 years ago
Size: 389 bytes


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

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