?
Solved

How to use common elements without PHP includes??

Posted on 2008-09-29
6
Medium Priority
?
263 Views
Last Modified: 2013-11-19
hi all,

I'm guessing this is an easy one, I hope so:

I've done many sites over the years, using Dreamweaver as my main program. Done them in HTML, and many with PHP.

Recently, I've really liked using PHP includes for my navigation bars, headers and footer. I like this rather than using Templates within Dreamweaver.

I now have a client, that for SEO reasons, will not let my use PHP, they strictly want HTML, XHTML or CSS.

Within that, how can I use common elements like a footer or header throughout, without having it actually coded onto each page?

Thanks, Cory

0
Comment
Question by:stonerome
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 1400 total points
ID: 22599410
in html, the INCLUDE syntax is called, surprisingly: include
http://www.boutell.com/newfaq/creating/include.html
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 600 total points
ID: 22599411
Hi Cory,

You can use regular server side includes if the host is set up correctly:

<!--#include virtual="/includes/header.html" -->

What might be easier for you is to use Dreamweaver to handle includes via Library Items.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 22599417
*shakes tiny fist at AngelIII*

Beat me by seconds!
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 5

Expert Comment

by:crush83
ID: 22599643
I'm not sure how much PHP includes would really affect SEO now days, though I guess it doesn't matter if it's not what the client wants.
0
 
LVL 44

Expert Comment

by:scrathcyboy
ID: 22600223
PHP gets SEO optimized just FINE by all the major SEngines -- if not 60% of google pages would disappear!

However, people harbor long standing preconceptions, even if they are now outdated.  AS long as you don't make links in javascript, and you do page renames from queries in the HTACCESS, PHP is indexed fine.
0
 

Author Closing Comment

by:stonerome
ID: 31501308
thanks all...knew it was probably easy!
0

Featured Post

Enroll in October's Free Course of the Month

Do you work with and analyze data? Enroll in October's Course of the Month for 7+ hours of SQL training, allowing you to quickly and efficiently store or retrieve data. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question