More information about the Underscore mailing list

[_] php - extracting info from a url to set state of nav

juan kennaugh contact at jkennaugh.co.uk
Tue Feb 2 14:30:24 GMT 2010

I don't know nuffink about mod rewrite - but yes there will be index.php 
pages inside the directories.

but I'm thinking of using this to find the string before the last slash:

$page = $_SERVER['REQUEST_URI'];
$arr = explode('/', $page);
$title = $arr[count($arr) - 2];


is that what you were seeing as a problem - or is it something else?

Juan


Richard Davey wrote:
> Hi juan,
>
>
>   
> Does the site use mod_rewrite, or is there an index.php page inside of
> a folder called "about-us" ?
>
> Cheers,
>
> Rich
>