|
Posted by the DtTvB on 05/29/06 18:04
Let me guess it, you did mod_rewite
RewriteRule ^/(.+?)$ index.php?$1
Is that what you want?
<?php
$requested_page = $_SERVER['QUERY_STRING'];
$requested_page = preg_replace('~/+~', '/', $requested_page);
$requested_tree = explode('/', $requested_page);
?>
I tested with
http://localhost/test5.php?folder//////subfolder///yo///lol and it said
that
$requested_tree is Array (
[0] => folder
[1] => subfolder
[2] => yo
[3] => lol
)
Navigation:
[Reply to this message]
|