473,395 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

show folder name script?

12
Hi people

I'm new to php
my problem is i want the title of my html page to be shown as the title of the folder it is inside. I know php can do a script like that.

and my next problem is how do i write the folder name as plain text in html?
Feb 11 '08 #1
7 2713
ronverdonk
4,258 Expert 4TB
You get the foldername and place it within the <title> statement at the top of your page, e.g.
[php]
<?php
echo '<title>'.basename(realpath('./')).'</title>';
?>
[/php]

Ronald
Feb 11 '08 #2
harshmaul
490 Expert 256MB
Are you trying to re-write the url?

theres alot to go through with that your better of skimming through this link...

http://corz.org/serv/tricks/htaccess2.php
Feb 11 '08 #3
ronverdonk
4,258 Expert 4TB
Are you trying to re-write the url?

theres alot to go through with that your better of skimming through this link...

http://corz.org/serv/tricks/htaccess2.php
I don't think re-writing url is the question here. It simply wants to display the name of the current folder in the <title> with PHP.

Ronald
Feb 11 '08 #4
harshmaul
490 Expert 256MB
Which is why i asked if 7effery was trying to rewrite, as oposed to offering the solution as rewritting.

Merly giving 7effery options.
Feb 11 '08 #5
ronverdonk
4,258 Expert 4TB
Which is why i asked if 7effery was trying to rewrite, as oposed to offering the solution as rewritting.

Merly giving 7effery options.
Ok harshmaul, I understand. Sorry form any misunderstanding on my part.

Ronald
Feb 11 '08 #6
7effrey
12
Hi guys

i have fixet it, just wanna thank you for your help
Feb 11 '08 #7
ronverdonk
4,258 Expert 4TB
Hi guys

i have fixet it, just wanna thank you for your help
You are most welcome.

Ronald
Feb 11 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: LarryM | last post by:
Hi, NB, not to stop capturing the single displayed Image, but to stop downloading the entire image directory. (In my Website you will do a search, and get some thumbnails, and these can be...
9
by: sergio | last post by:
Hi all, I have created the following script that will show/hide a menu based on checkboxes. It works fine in Opera but not on IE6! Does anybody knows a workaround this problem? Thanks for your...
5
by: Zambien | last post by:
Hi all, Here's my problem. I have tables that are using the menu/submenu idea for hiding rows. This works fine in IE (of course) and does show/hide correctly in netscape, but as soon as the...
21
by: strutsng | last post by:
<input type="file"> only allows the user to browse for files. How about "browse for folder" dialog? Can html/javascript do that? I couldn't find any syntax for that. If not, please advise what...
3
by: Brian Henry | last post by:
How would you go about doing this I have a tree view which where anything is a parent it is a folder (folder icon, and the tag for the object is a string that says "FOLDER:{name of folder...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
0
parshupooja
by: parshupooja | last post by:
Contact Reply 1 point Member propoo Joined on 08-31-2007, 10:32 PM Posts 3 Hey all ,
2
by: 7effrey | last post by:
Hi people my problem is i want the title of my html page to be shown as the title of the folder it is inside. and my next problem is how do i write the folder name as plain text in html?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.