Wedge
Public area => The Pub => Off-topic => Topic started by: CJ Jackson on June 20th, 2011, 12:52 AM
-
http://cj-jackson.com/2011/06/19/simple-effective-url-routing-system/
What do you guys think about the script? :)
-
Same trick as on Wedge eheh :)
-
I just updated to script, added rtrim($self, '/'), what I was thinking? forgetting to escape the trailing slash!
Did you try out IIS 7.5 on Windows 7 yet?
-
IIS? Why?
BTW, I noticed two unsets in your source code... JFYI, unset($a, $b, $c) works fine :)
-
I'm curious about something....
Why didn't you go with something like:
$URI = $_SERVER['PHP_SELF'];
$URI = str_replace("index.php/", "", substr($URI,1,-1));
$Context['Request'] = explode("/",$URI);
For that first part?