Dw Templates Vs Php Includes - which one you prefer?

Pages: 1, 2
free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Dw Templates Vs Php Includes - which one you prefer?

arboc7
QUOTE(Lozbo @ Sep 7 2005, 12:05 PM)
so if you include for example a file named "meta.php" with all the meta tags defined in it (which i find myself cool) and then include it in each of your pages that need  that given set of meta tags, it should be visible by all the search engine spiders, as its normal html what is displayed.
*




I never thought of that...it's a really good idea!! Thanks a lot for it!! I'll be using it in all my websites soon.


Reply

Tyssen
QUOTE(Lozbo @ Sep 8 2005, 03:05 AM)
so if you include for example a file named "meta.php" with all the meta tags defined in it (which i find myself cool) and then include it in each of your pages that need  that given set of meta tags, it should be visible by all the search engine spiders, as its normal html what is displayed.

I usually create a header include which includes the doctype, title, head section (including meta tags), header & top navigation and the left side navigation too if applicable. Whack that in a function which can then be called from all your pages to dynamically change things like meta description and <title> tag.
I do the same with my footer.
So then, most of my pages look like this:

Header include
Individual page content
Footer include

Reply

Lozbo
QUOTE(Tyssen @ Sep 7 2005, 08:47 PM)
Whack that in a function which can then be called from all your pages to dynamically change things like meta description and <title> tag.
*


How would you do that? dynamically change it?

I usually have my includes like header and menu on separate files, but i think that the way you work is easier... thanks for the tip.

Reply

Tyssen
Well I usually work in ASP so not sure how it goes in PHP but a sub (sorry meant sub not function) in ASP works like this:

CODE

Sub WriteHeader(pageTitle,metaDescription)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><% = pageTitle %></title>
<meta name="description" content="<% = metaDescription%>" />
</head>

<body>
end sub

Then on your page, do this:

CODE
<% WriteHeader "Your page title","Your meta description" %>

The bit in the quote marks in the call to the sub gets input into the sub which prints that and the rest of the HTML.
You also need an include on each page that contains the sub.

 

 

 


Reply

littleweseth
PHP includes.

Dreamweaver templates, last time i checked, used comments and stuff in normal HTML to define editable areas, and <!-- --> is very unpretty to say the least. (why couldn't they define // in HTML?)

Also, with dreamweaver templates, the disadvantage is this : you need dreamweaver. PHP is free, whereas dreamweaver is expensive and not everyone has it - though if you've already paid for it, this is kind of a moot point.

Reply

jae-unit
I prefer PHP because its a lot easier to use then templates.

Reply

Lozbo
QUOTE(Tyssen @ Sep 8 2005, 12:58 AM)
CODE

Sub WriteHeader(pageTitle,metaDescription)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><% = pageTitle %></title>
<meta name="description" content="<% = metaDescription%>" />
</head>
<body>
end sub

Right, i know how could i translate that into php. I dont know why but i just thought it would be harder, but this looks really simply and should save a lot of work in some cases. Thanks!

Reply

dul
Ofcource PHP. Go for it. Good luck.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Similar Topics

Keywords : dw, templates, php, includes, prefer

  1. My First Website
    Where can i find useful web page templates? (1)
  2. Shadow_x21 Tutorial Includes: Remote Shutdown
    and Local Shutdown (7)
    Shadow_x21 Tutorial : Remote and Local Shutdowns Shadow_x21 To Remote Shutdown A Computer.
    Used to shutdown a computer on the same network. Like at school open notepad or a simple text
    editor( not microsoft word) or you can use the command prompt type @echo off cls shutdown -m
    \\Computername -s -t 120 -c "Comment Goes Here" Explanation: @echo off : means that
    the code you typed below @echo off will not be displayed to the user cls : will clear the
    screen shutdown : represents shutdown.exe or the shutdown method -m : represents a rem....
  3. Which Sport Do You Prefer?
    (10)
    As the topic says, which sports do you prefer? And also please explain why. For me it's,
    winter: I like both, even though I broke my wrist learning snowboarding, I still think it's a
    great sport. And I've been skiing for over 5 years so that's just plain easy for me but
    it's still lots of fun. Summer: windsurfing, I've been doing this for 3 years now and I
    still love it, I don't have a lot of time to go surfing at the moment though. I would also love
    to learn how to kite surf. On the street: Skating, because I've been doing it since I w....
  4. A Few Wrods With The Respectful Admins Of Www.qupis.com Free Hosting Service
    This topic includes your opinions, critics, and suggestions to Qupis a (1)
    Dear Qupis admins, We have a few words to say tonight. Well, we own a small website for our chess
    club hosted kindly by you which is: http://veins.qupis.com Everything is great and works fine but
    a few problems still are in the air that we want to discuss them with you. *- You said in your
    terms and conditions that "place no files to be downloaded from this site except for a few Kb"!
    OK! We have some .xls Excel sheets which are over 300 KB and we want to put some chess e-books
    for download there which will never exceed your designated space limitations. W....
  5. A Couple Of My Templates.
    (1)
    I'm not some super awesome webmater guy who pwns faces with mah HTML/CSS/PHP shtuff. I'm
    just a kid who likes to make sites. So, I thought I'd share a few of my templates with you
    guys. Whom I don't know any of. Eric's Site Black and Red - Don't know if this
    one loads. It isn't loading right now. HostSnake might be down. I'm trying to get hosting
    here, but having to post stuff makes it a bit harder. As you can see, I'm not really good,
    I'm just ok, but I think I'm pretty good for my age and lack of education in thi....
  6. 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> <!....
  7. Html/css Website Hosting Templates Request - You Will Be Paid Off
    Website hosting template request (6)
    I am using cpanel and WHM, and i want a hosting template. Well i have dreamweaver and photoshop,
    i have found pretty nice looking hosting templates, but what i want is a unique, original and
    professional like ( http://www.resellerguide.com/resellerhosti...plate6/big.jpg) that template is
    really neat, but since its open to public they could be like 20-50 people using it, and this type of
    template is hard to customize , even with photoshop. So if someone could create something like this,
    with the theme a little different , but i love his layout, instead of the nav and....
  8. Windows, Linux Or Mac Osx?
    Which OS do u prefer. (25)
    Well, I've tried Ubuntu Gutsy and Windows Vista. I liked Ubuntu but I think that it needs more
    work to become a "real" OS, I mean, u need to know many code to can use it properly, I have 2PCs in
    one I've Windows Vista (my main laptop) and in my secondary PC (desktop) I've Ubuntu and
    Windows XP (dual-boot). Give ur opinion about this OS.!....
  9. [php]diffrent Type Of Template [id] With Includes ;)
    (13)
    ?> Example <!-- A { color: #003366;
    text-decoration: none; } A:link { color: #003366; text-decoration: none; }
    A:visited { color: #003366; text-decoration: none; } A:active { color:
    #54622D; } A:hover { color: #54622D; } BODY,TD,TR{ font-family:
    verdana, arial, sans-serif; color:#000; font-size:11;
    font-weight:normal; } .banner { font-family: georgia, verdana, arial, sans-serif; ....
  10. Php Scripts And Website Templates
    php scripts and website templates (7)
    I need some help. I´m trying to start my own website but I´m out of ideas about the design... The
    site should look something like this (click to view) Like I said I´m out of ideas so if any of you
    knows of a good and free web template that looks like my site please post the link to it. I´m also
    looking for some free php scripts (classified ads, fotolog, youtube, banner exchange, link exchange,
    adbux) so if you know where I can find any of those scripts please let me know. Thanks in advance.
    "I Need Some Help" isn't a good topic title. Changed to a more descript....
  11. Free Professional Website Templates
    (12)
    Design Load is a Professional website Templates design website, they offer a few professional
    website themes that cannot be found elsewhere, this page also lists a few website graphics. All the
    images are provided with their proper PSD source and Font files.
    http://www.designload.net/free.html ....
  12. Excellent Free Website Templates
    (24)
    Site also includes 60 free logo templates, 63 free banner templates, 84 free newsletter templates,
    website arrows, abstract images, and much more. Fantastic resource...
    http://www.templatesbox.com/templates.htm ....
  13. Free Website Building Graphics.
    Templates, backgrounds, seamless tiles and desktop/wallpapers. (21)
    Free graphics and templates to use in designing your website and personalizing your computer
    desktop. There are over 100 web sets to choose from in multiple themes. You can also find
    backgrounds, seamless background tiles, desktop/wallpapers for your computer and greeting cards for
    occasions to download or link to. Everything is free at this site. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> My Website ....
  14. Fable: The Lost Chapters
    which side do you prefer? (11)
    It is better to be evil than good? Do you earn more (money etc.) if you are evil? and how will my
    character look if i am evil? And one thing more: How can i enter the arena? (and fight with the
    people there) It's very important that you enter both title and description since there's
    another topic with the same title with different discussion. ....
  15. [photoshop]grunge Abstract Sig ~ Samma
    Includes Multi Color Method (9)
    Im not sure if this has been done before... I havent seen a grunge abstract tut before, but anyways
    here it is /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' /> Outcome:
    1. Fill the canvas with black, and brush with white using a grunge brush. After you have
    completely filled the whole layer with the grunge brush, go to Image > Adjustments > Auto Contrast,
    then go to Filter > Sharpen > Sharpen Edges, then finaly go to Edit > Fade Sharpen Edges and do an
    opacity of 50%. Make a new layer. Repeat Step 1. another 2 times using different gru....
  16. Which Speakers Do You Prefer?
    Logitech, Creative, Altec Lansing, etc. (15)
    Personally, I think that creative makes good speakers, not the best, but kind of on the ihgh end
    side. If you want your speakers to sound good for gaming or hard rock music, altec lansing would be
    your best choice as the sub-woofer is built to produce stronger bass. But if you just want it for
    quality easy listening, Creative speakers are your best choice. I'm not sure about creative
    speakers but I can introduce a few good ones to you. Creative's I-Trigue 3200 is consider a low
    end one which cost only $80 I-Trigue L3450 is consider and mid range speaker wh....
  17. Reading Mode
    prefer which one (7)
    well,book is people's friend and source from life of people.we grow up with books exactly with
    knowledge.so reading book is a way to own knowleage...now we read book not only by reading real book
    but also reading on pc or palm.for me,because the need of my specialty,i must use the laptop in
    class,reading or writing occur always on pc.to read real paper book become less...so get a habit of
    reading by screen gradually. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    but i still prefer reading real books. what about you?do you use computer frequ....
  18. What Eye Colour Would You Prefer?
    If you could change it? (92)
    Oooh! Oooh! I like.... I DUNNO!!!! /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> I JUZ DUNNO!!!! /ohmy.gif'
    border='0' style='vertical-align:middle' alt='ohmy.gif' />
    AHHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!
    ;!!! /ohmy.gif' border='0' style='vertical-align:middle' alt=....
  19. Mambo Templates
    Best templete sites, how to make own... (9)
    This thread is for disscusing Mambo Open Source CMS (MOS). Post any links to Mambo related sites
    (template sites, module sites, or whatever mambo). If you have tutorials for creating own templates
    post here. I personally need some tutorial for using CSS when creating Mambo templates, and some
    reference to all the classes, divs etc (e.g. mainmenu, button...) of modules (menus, polls etc).....
  20. Coke Music Vs Habbo Hotel
    which would you prefer (31)
    /cool.gif' border='0' style='vertical-align:middle' alt='cool.gif' /> I'd prefer Coke
    Music over Habbo Hotel because..... /ph34r.gif' border='0' style='vertical-align:middle'
    alt='ph34r.gif' /> IT'S FREE!!!!!!!!!!!!
    /unsure.gif' border='0' style='vertical-align:middle' alt='unsure.gif' /> The characters also
    known as V-Egos look more realistic and human like than Habbo Hotel's blocky people
    that almost exactly like thos huge LEGO people made for 3 year-olds /bli....
  21. Contact Lenses Or Glasses?
    Which do you prefer? (70)
    Hey all! Just thought I'd ask everyone on the forum whether they use (or prefer to use)
    contact lenses or glasses. Here's my story - After discovering that I was near-sighted while
    taking a visual test for my driver's license, I went to the optometrist and bought my first pair
    of glasses. Since then, I've been wearing glasses (and going through several different frames)
    for about 15 years until I finally decided to wear soft contact lenses. Certainly, there are pros
    and cons to each. Glasses are (overall) less expensive since you only have to repl....
  22. Dreamweaver Vs Frontpage
    Which do you prefer? (50)
    Dreamweaver MX 2004 is probably the best program I beleive ever made. It has such simple controls
    and if you know HTML and flasah you can design any web layout you want as long as you have a good
    imagination. And the unique layer sytem is just amazing. When I first doewq Frontpage isa alsao a
    very good program but the fact it isa not truly flasah enabled like dreamweaver is, makes it
    extremly flawed.....
  23. Open Source Web Design
    templates for everybody (52)
    are you ready to share your ideas on the web but too busy to create a decent layout? browse these
    template thumbnails: http://oswd.org/browse.php check out the most popular downloads:
    http://oswd.org/most_popular.phtml visually-appealing and crisp designs. /smile.gif' border='0'
    style='vertical-align:middle' alt='smile.gif' /> no long download waits either, so no problem for
    dialup users. enjoy! /tongue.gif' border='0' style='vertical-align:middle' alt='tongue.gif' />
    (want this pinned? pm an admin or another mod /tongue.gif' border='0' style='vertica....
  24. Which Do You Prefer?
    Xbox 360/PS3 (9)
    I would prefer PS3 just because I'm a PS owner.....
  25. Which Forums Would You Prefer?
    Good for people creating communities... (13)
    I'm using InvisionFree board... I wanna know what others think about other boards and their
    reasons for it.......
  26. What do you prefer: Windows or Linux?
    (84)
    Hello!! I'm an amateur in computers. I gained an computer this year and it comes with WINDOWS
    XP. But my friend told me that the Linux is better than Windows. Is it true??....
  27. Dell Or Hp ?
    Which is the best computer brand you prefer ? (53)
    I prefer DELL... The service is good... Esp after sales services... I heard HP lock up their
    hardwares so user cannot upgrade parts themselves.. but to go through HP for upgrades... Thats
    hurts.......
  28. Templates
    download Nice Template (10)
    I Fint this Template for u /biggrin.gif' border='0' style='vertical-align:middle'
    alt='biggrin.gif' /> http://xinfo.3dmaster.net.ru/templates/Tem...6471-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6417-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6221-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6370-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6419-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6446-SPK100.rar
    http://xinfo.3dmaster.net.ru/templates/Tem...6207-SPK100.rar hihi I Find th....
  29. Quake Or Unreal
    2 similar games which do you prefer? (36)
    It's close to call but i think unreal is better as it is easier to play. and im good at it!....
  30. Review My Templates
    2 variations (18)
    Hey all, I have a few templates for your reviewing pleasure. Please, take the time to look at them
    and let me know what you think. The Below images are the two templates I have finished and are ready
    to be scripted together; but I always like a review before I bother to script them... click on
    images to enlarge Template Variation 1: Template Variation 2: Later, -- J.....

    1. Looking for dw, templates, php, includes, prefer

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for dw, templates, php, includes, prefer

*MORE FROM TRAP17.COM*
Similar
My First Website - Where can i find useful web page templates?
Shadow_x21 Tutorial Includes: Remote Shutdown - and Local Shutdown
Which Sport Do You Prefer?
A Few Wrods With The Respectful Admins Of Www.qupis.com Free Hosting Service - This topic includes your opinions, critics, and suggestions to Qupis a
A Couple Of My Templates.
Question About Php Includes - How would you include a frame AROUND the page?
Html/css Website Hosting Templates Request - You Will Be Paid Off - Website hosting template request
Windows, Linux Or Mac Osx? - Which OS do u prefer.
[php]diffrent Type Of Template [id] With Includes ;)
Php Scripts And Website Templates - php scripts and website templates
Free Professional Website Templates
Excellent Free Website Templates
Free Website Building Graphics. - Templates, backgrounds, seamless tiles and desktop/wallpapers.
Fable: The Lost Chapters - which side do you prefer?
[photoshop]grunge Abstract Sig ~ Samma - Includes Multi Color Method
Which Speakers Do You Prefer? - Logitech, Creative, Altec Lansing, etc.
Reading Mode - prefer which one
What Eye Colour Would You Prefer? - If you could change it?
Mambo Templates - Best templete sites, how to make own...
Coke Music Vs Habbo Hotel - which would you prefer
Contact Lenses Or Glasses? - Which do you prefer?
Dreamweaver Vs Frontpage - Which do you prefer?
Open Source Web Design - templates for everybody
Which Do You Prefer? - Xbox 360/PS3
Which Forums Would You Prefer? - Good for people creating communities...
What do you prefer: Windows or Linux?
Dell Or Hp ? - Which is the best computer brand you prefer ?
Templates - download Nice Template
Quake Or Unreal - 2 similar games which do you prefer?
Review My Templates - 2 variations
advertisement



Dw Templates Vs Php Includes - which one you prefer?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE