Amezis
Aug 19 2005, 01:21 PM
| | Let's say I have the same PHP script on all pages, with the same menus, footer etc, but with different content. The PHP page is called "Sitename - ", and the included pages (which is in HTML) is called "Thingy". I want it to load both titles, so the title will be "Sitename - Thingy". The second page have the same PHP code (with the normal title, "Sitename - "), but is called "Why not?". This one have the title "Sitename - Why not?".
Hope you understand what I want, and that you can help me.  |
Reply
electriic ink
Aug 19 2005, 01:36 PM
So you have a header file containing all of the content between the <head> </head> tags but you want to make it so that you can still include the file but have different content between the <title></title> tags? If I am right, this is how I would do it, but it requires php: Your header.php fileCODE <html> <head> <title> Sitename - <? echo $pagetitle; ?> </title> </head>
<!-- Some over stuff -->
An example webpageCODE <?
$pagetitle = "Black Widgets"; include "header.php";
/* Some other stuff */
?>
Now between the <title> tags on our webpage there is Sitename - Black Widgets. I use the same idea on my website Edit: Mistyped some code
Reply
HmmZ
Aug 19 2005, 02:37 PM
Great to see other people who know enough about php too  (it may be bad for my hosting credits tho  , gained alot by answering php qustions  )
Reply
Similar Topics
Keywords : loading, title, include, tag
- Modifying The Topic Titles: To Be Or Not To Be?
Is it possible to modify the miss-typed words in a topic title? (3)
A List Of Animals And Their Meaning
Like the title says (1) This is a LONG list of animals and their Meanings! ^.^ Hope U like it!
Alligator - aggression, survival,
adaptability Ant- team player, worker Armadillo - active, nocturnal, protection Bat - guardian of
the night, cleaner Bear - power, adaptability Bear Paw - strength, mobility Beaver - builder, gather
Bobcat - fierce, loner intensity Brontosaurus - harmless giant Buffalo - sacredness....
Another Boring New Member Introduction
the title says it all (6) First of all, greetings to anyone who's bored enough to read through these introductions. I
signed up 2 days ago, got hosted 1 hour ago... And thought it's about time I introduce myself.
My name is Dan, 24, IT student (hopefully graduating this year). Worked for about 2 years as
programmer, desktop applications. I love programming when it's not unnecessarily complicated and
I am kind of a perfectionist. I looked for free webhosting because I want to learn some PHP,
mostly just for amusement. Also, I want to see how it is to develop and manage an website ....
Php Auto Website Title
(8) This simple PHP function is pretty handy if you want your websites pages in the title without having
to name individual ones. It will look like: QUOTE MyWebsite | Index QUOTE Quote:
MyWebsite | Gallery QUOTE Quote: MyWebsite | Forums etc.. paste the code into your
"functions" file, or any webpage which is included in every page you have (Reminder: To include a
webpage, use 'include("webpage.php");') You can of course put the function in each page, but
that's just annoying .. /tongue.gif" style="vertical-align:middle" emoid=":P" borde....
Php Allow Url Include Question!
Need an admin to clarify something... (10) Hi, i've just signed up to your hosting over the last few days, and its been very fustrating
that you don't allow the directive: allow_url_include. Do you think that there could be anyway
that you could turn it on? i've installed a login and hit counter script and i had to edit half
of it. I also want to 'include' my page list on all of my pages, to make it easier to
update them, but the only way i would be able to do this is upload a page list to every directory,
which defeates the purpose. And i can't use SSI because i can't use PHP with ....
Server Problem?
Website not Loading (11) Hi There, Is there a problem with the Qupis server? My website (http://disneyreporter.qupis.com)
as well as other websites hosted with Qupis are not loading. When will this problem be fixed?....
Php - Forms, Date And Include
Working with POST and GET and also the Date() function (0) /--------PHP FORMS, DATE AND INCLUDE TUTORIAL BY FLASHY--------\ Hi and welcome to my
tutorial. I will show you how to make simple PHP forms with the POST and GET statements. I will
also show show you the Date() function too, aswell as the include() function. OK, so first you need
a good understanding of HTML, and you need to create your form using that. So lets start off with
the HTML form. 1. Create a page called form.html. 2. Insert your standard tags like: CODE
<html> <head> <title>Working with php forms.</title> </he....
Loading Linux
Loading Linux (5) Go to http://www.Linux.org/dist/list.html Linux is packaged in different distributions one of my
favorite is http://musix.org.ar/en/index.html it is full of powerful art producing software like
http://www.rosegardenmusic.com/ and many more. many of the Linux distributions have what is called
live CDs these are Linux Distributions You can run from Your CD ROM on Your windows system. You put
the CD in before You boot then when You boot Your computer the CD boots up Linux and Linux now will
recognize all Your hardware. You just download the MusixGNU+Linux1.0r2_Stable.....
A New Webcomic
Its name is Bœring and Bœr'd, for lack of a better title. (11) This webcomic spawned out of reading so many comics. I decided to start a stickman comic of my own.
It has no characters, like XKCD, and it doesn't have any plotlines... yet. Here is the URL:
http://comic.trickypuzzle.trap17.com/ ....
Firefox Not Loading Java
(1) I can't figure out why, but my Firefox hasnt been loading any Java applets. Instead it freezes
up and goes to 'Not Responding'. Anyone know why this is happening and how to fix it? If it
helps I'm running Vista.....
Question About Php Includes
How would you include a frame AROUND the page? (17) I'm trying to make a layout for my website for the areas that aren't occupied by Wordpress,
and I want to use PHP includes to do it. So far, I know how to use tags, like this: CODE
<table> <?php include "sidebar.php" ?> </table> This is okay,
but I want to be able to include everything in one "container" file. Kind of like this: For every
HTML file that I include: CODE <html> <head> <?php include
"frame.php" ?> <title></title> </head> <body> <!....
How Do I Include A Php Sidebar In My Website?
This is a question about PHP... (5) (If I am posting this in the wrong forum, please tell me the correct place to be putting it.) I
want to install a global announcement banner on the top my website, in case there is some major
update. I am currently learning PHP for this very purpose, and would like to ask how it is made. (I
know how the HTML layout is going to look like, I just want to be able to actually include the PHP
portion on the website.) I heard it had something to do with includes in PHP... how exactly does
this work?....
Does Php Include Work?
not for me aparantly... ? (17) So I joined this hosting because of the promoted "no limits" because ALOT of other servers don't
allow the use of the PHP fnction include, which is something I'm DEARLY FOND OF; when I posted
my pages on my newly hosted site ( bselvar.trap17.com ) I find that my includes for a ?page= style
simple navigation doesn't work. Doesn't that mean there ARE restrictions? and is there a way
to enable this?....
Website Not Loading?
(31) This happened yesterday, and now today. I can't connect to my website. The URL is:
http://www.brutalwarfare.trap17.com/ I get the "Problem Loading" page.....
Hosting Account Should Include Wysiwyg Editor
Hosting account should include wysiwyg editor (7) I think Most of people looking to build a website don't know html or php therefore I think
trap17 should include a wysiwyg editor with functions like drag and drop features. /smile.gif"
style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> It will be a great benefit
to trap17 hosted members if it has some predefined templates for various categories.I myself is
facing difficulties as I don't Know Html and I know there are other visual editors.But I think
An Wysiwyg editor integrated with trap17 would do good to the newbies who have just put thei....
Why Does Windows Explorer Crash, Following Up With The Unsuccessful Loading Of Windows' Debugger?
Issue with Windows Explorer and Dr. Watson Post-mortem Debugger (2) Sometimes when I boot up Windows or when the OS just has to have a hiccup with Explorer, I get the
infamously-humorous error message that states that Windows Explorer must be shut down in order to
protect your computer. /dry.gif" style="vertical-align:middle" emoid=" After confirming it, the
Dr. Watson Post-mortem Debugger ALWAYS hangs and prevents Explorer from automatically-restarting,
forcing me to go to the Task Manager and killing drwtsn32.exe (which would be the Dr. Watson
Post-mortem Debugger) in order to set things right. Not only is it annoying, but I'm a....
Hitman
Unknown Title (2007) (4) Well i for one am most excited about this one, it has been one of the best games made and now it
will be one of the best films ever made. Hitman: The Movie Overview Director:Xavier
Gens Writer (WGA):Skip Woods (written by) Release Date:30 November 2007 (UK) Genre:Action / Crime /
Thriller more Plot Outline:A gun-for-hire known only as Agent 47 (Olyphant) is ensnared in a
political conspiracy, which finds him pursued by both Interpol and the Russian military as he treks
across Eastern Europe. hired by a group known as "The Agency" to kill targets for ca....
Harry Potter: The Deathly Hallows
WARNING: MAY INCLUDE SPOILERS! ONLY READ IF YOU HAVE READ THE WHOL (18) I was wondering, can this be a discussion for the seventh and final book of the Harry Potter
series? Because I really want to talk about it. Great book! Do you think that the ending is a
bit.. predictable? I mean, it was kind of obvious (to me) that Hermione and Ron would
eventually.. Marry each other? As with Harry and Ginny. But I like Harry's kid the best, the one
that looks like him. Albus Severus, right? Or was it Albus Snape? Hmm.. I remember it was Albus
_______.. ....
Problem With Firefox, Latest Version, Not Loading Pages
any ideas? (4) Hi all Ive had this problem for a little while now, i cant say exactly when but it started with
sites such as youtube and has spread out from there really, the biggest culprits are youtube and
myspace. The issue is that if i was on youtube and wanted to watch a video i would obviously click
the link, firefox would then show the loading bar and my page loading timer would start but it would
never actually begin loading, the status bar would say "loading" or if i clicked the link again it
would show "stopped" yet the loading bar would be there. Needless to say the loadin....
Loading File Into Blob Fields To Mysql
(1) Hi all! does any know how to load file into blob filed by sql script?....
Looking For New Mmorpg Relatively Like Runescape
title says all (12) Ok, no spamming me about runescape, it was a fun game in my opinon and i respect others who say to
it sucks, doesnt suck, just didnt get anywhere...at all, so now i'm looking for something like
runescape, only relavtively new, I want a game with skills to train, monsters to battle, gold to
gain, anything of that matter, also, if it could be avioded, i dont wish to download anything, thats
for looking and/or replying, Peace /laugh.gif" style="vertical-align:middle" emoid=":lol:"
border="0" alt="laugh.gif" />....
How To Lock A Folder And Keep It Private
title explains it (21) okay people i had a member ask earlyer how to lock folder and or a file and i had the answer, and i
though to my self after i had written it maybe everyone may need to do thsi so ill post it into a
tutorial, okay so i wrote this for someoneelse earlyer and am posting it here for all to see: you
dont need software to lock a folder or add a password to a folder right okay this is my little
tutorial on how to lock a folder, here we go first things first you need a random folder or the
folder you wish to lcok then put what ever you want to lock into the folder, then right c....
How Do You Stop A Girl From Liking You?
Wow this topic must be weird with a title like that! (42) There is this girl in my core class (the class that I do maths, english and stuff like that with)
and she likes me, the only problem is that she is a bit.... well 'open' (that can get very
annoying) about it, and I already go out with someone! How do youdo this without hurting your
rep? No she don't listen to me when I ask her to stop being so open about it.........
Tales Of "insert Your Rpg Title" Game Collection
(5) I'm probably gonna end up getting all of them if I can. Tales of Eternia - PSP Tales of
Legendia - PS2 Tales of The Tempest - DS Tales of Phantasia - GBA Tales of Symphonia - GC Still
havn't played Symphonia. @_@ They're really good if your into a good RPG series and want a
challenge of sorts.....
Include File.php?id=something
using the include() function (13) Well, I am making a full CMS system for my site, and want to make the index.php file to include the
view.php?id=1 file. I tried with this code, but it didn't work: CODE <?php include
'view.php?id=1' ?> This is the error I get: CODE Warning:
main(view.php?id=1) [function.main]: failed to open stream: Invalid argument
in C:\server\xampp\htdocs\test\index.php on line 1 Warning:
main() [function.include]: Failed opening 'view.php?id=1' for inclusion
(i....
Kitten Born With Only One Eye And No Nose
basically the title says it all. problem (27) http://www.msnbc.msn.com/id/10792937/ Basically this kitten is named Cy, short for cyclops was
born with this facial deformity. I think its just sad. The kitty dies in one day. All the mothers
litter were normal. What do you think about this??? Like I just think life is so unfair sometimes.
Everybody is not born the same.....
Change / Modify The Title Bar Text In IE6 Or FF
custom text in titlebar in ie or firefox (3) Changing The Text In The Bar (IE and Firefox Only) This will allow you to change the text in
the title bar of either msie6 (may work for ie7 beta or earlier versions) and mozilla firefox 1.0.
By default this is set to Microsoft Internet Explorer provided by ##### or Mozilla Firefox .
Here's how to change that..... For Internet Explorer (6) Warning! Changing the title
for internet explorer requires editing the registry. Making changes in the registry in keys or
values that are not listed here could cause your computer to crash or slow. Follow the fo....
Php Include Root Ref
whats the root? (6) Every one knows that we can include files in our site, so we have a folder with 2 files, an
index.php with a menu.php included. But they are on the same folder, what if we wanted to make a
relative reference for it, so we will always put include("/files/menu.php") and it will always work
wherever that file is (the file calling the include). Ive had troubles with this, as it doesnt seem
to be working, i have to change to the dot notation (like ../../../../../files/menu.php) in order to
keep my includes right. Does any one know what the root is for the include or how can ....
How Long U Play Cod?
topic title tells all. (23) hm... Topic tells all. How long u play call of duty? i have played 2 years!....
Faster Page Loading...
Firefox Browser ONLY (18) This will make your pages load even faster. 1. Type "about:config" into the address bar and hit
return. Scroll down and look for the following entries: network.http.pipelining
network.http.proxy.pipelining network.http.pipelining.maxrequests Normally the browser will make
one request to a web page at a time. When you enable pipelining it will make several at once, which
really speeds up page loading. 2. Alter the entries as follows: (by double clicking them) Set
"network.http.pipelining" to "true" Set "network.http.proxy.pipelining" to "true" Set
"network.http.pip....
Looking for loading, title, include, tag
|
*RANDOM STUFF*
*SIMILAR VIDEOS*
Searching Video's for loading, title, include, tag
*MORE FROM TRAP17.COM*
|
advertisement
|
|