PHP Classes
elePHPant
Icontem

File: sample.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Dean Newman  >  URI Rewrite Handler  >  sample.php  >  Download  
File: sample.php
Role: Example script
Content type: text/plain
Description: Sample File
Class: URI Rewrite Handler
Rewrite request URLs split with backslashes
Author: By
Last change:
Date: 3 years ago
Size: 343 bytes
 

Contents

Class file image Download
<?php

include 'class_rewrite_uri.php';

$url = new RewriteEngine();

echo
'<pre>';

echo
'Build: ' . $url->build('path/to/blah') . "\n";
echo
'Pop: ' . $url->pop() . "\n";
echo
'Push: ' . $url->push('random/doggy') . "\n";
echo
'Shift: ' . $url->shift() . "\n";
echo
'Print: ' . print_r($url, true) . "\n";

echo
'</pre>';

?>