Jump to content

[SOLVED] Code to have Header the name of folder


lorne17

Recommended Posts

Is there a way to create a title that automatically places the name of the folder the page is located in?  I have a header when a client logs in and views available files to download, and would like to get the header to be the title of the folder they are currently in.

 

Does that make sense?  Any help would be greatly appreciated.

 

Thanks,

Lorne

 

 

Awesome,

 

worked like a charm.

 

Here's the code:

<span class="heading_text">
<?php
echo basename(dirname(__FILE__));
?>
</span>

 

I didn't want it in the title, But I did want it as a heading and it still worked great.

 

Thanks again,

Lorne

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.