Re: neubie seeking answers

From: Date: Thu, 31 Mar 2011 16:43:21 +0000
Subject: Re: neubie seeking answers
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-312166@lists.php.net to get a copy of this message
On Thu, 2011-03-31 at 17:34 +0100, Stuart Dallas wrote: > On Thursday, 31 March 2011 at 17:24, 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?!? > > $dir = basename(dirname(__FILE__)); > > -Stuart > > -- > Stuart Dallas > 3ft9 Ltd > http://3ft9.com/ That is what I was thinking... but for some reason, I couldn't remember it... so I did that whole explode() thing... oh well! Kirk, use that :)

« previous php.general (#312166) next »