On Thu, 2011-03-31 at 12:24 -0400, Kirk Bailey wrote:
> I need to extract the name of the subdirectory a page lives in to
> use in the title for that page. This will be returned as a string to
> echo to the output stream. Now how the heck do I do that?!?
>
> --
> end
>
> Very Truly yours,
> - Kirk Bailey,
> Largo Florida
>
> kniht
> +-----+
> | BOX |
> +-----+
> think
>
>
I am SURE that there is a better reply already... but quick and dirty...
<?php
$t = explode('/', dirname(__FILE__));
echo $t[count($t) - 1];
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php