Top Articles

Stay In Touch


Affiliate Marketing Forum

FAQ FAQ Search Search Memberlist Memberlist Usergroups Usergroups
Register Register Profile Profile Log in to check your private messages Private Messages Log in Log in

PHP Template and the Search Engines

Affiliate Marketing Forum Index » Do-It-Your-Selfers
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mrpeabody



Joined:
06 Mar 2006

Posts:
25


Post Posted: Fri Jun 16, 2006 9:19 pm
      Post subject: PHP Template and the Search Engines

Reply with quote

I am creating a custom PHP template for a new site. The body of my php/html files will look similar to the following

<?php include('Header.html'); ?>
<?php include('right-menu.html'); ?>
<?php include('footer.html'); ?>

As you can see I want to write my header/footer and menus once and include them in my content pages.


Is this a good or bad approach for the search engines?
_________________
www.mymindmap.net
www.firefoxhacker.com
Back to top View user's profile Send private message Visit poster's website
nichefinder



Joined:
09 Feb 2006

Posts:
96


Post Posted: Sat Jun 17, 2006 3:36 am
      Post subject: Re: PHP Template and the Search Engines

Reply with quote

mrpeabody wrote:


Is this a good or bad approach for the search engines?


I do this all the time and I'm able to get good rankings. I don't think there's any serious issues with the SE's.
_________________
Charles Amith

Recurring Income Affiliate Strategies Revealed - Click Here
Back to top View user's profile Send private message
Charlie



Joined:
22 Aug 2003

Posts:
3305

Location:
UK

Post Posted: Sat Jun 17, 2006 8:35 am
      Post subject: Re: PHP Template and the Search Engines

Reply with quote

mrpeabody wrote:
Is this a good or bad approach for the search engines?

PHP includes are completely invisible to SE spiders...

PHP is server side scripting. The pages are built on the web server and the HTML delivered to the client (browser or SE spider). This is the opposite of client-side scripting (such as with Javascript) where the script is delivered to the client and the output written there...

That means that client browsers and SE spiders cannot see the PHP code (like they can see internal clientside Javascript). All they see is the HTML page that the PHP has built, and index it exactly the way they normally would. The source code created matters, but not how it was created.

Basically, content written server side by PHP is indexed, but content written client side by Javascript is not.

Hope this helps,
Charlie.
_________________
"Before I speak, I have something important to say."
- Groucho Marx
Back to top View user's profile Send private message
mike929



Joined:
23 Jun 2004

Posts:
178


Post Posted: Wed Jun 21, 2006 3:53 pm
      Post subject:

Reply with quote

Quote:
browsers and SE spiders cannot see the PHP code (like they can see internal clientside Javascript). All they see is the HTML page that the PHP has built


Exactly. If you look at the source code of a page that uses php includes you won't even see the php markup. It will just contain whatever is in the include file as if it had been entered manually.

Server side includes are a great timesaver and I now use them for all of my navbars, footers, etc. If I want to make a change or add something I just do it once and the change occurs the entire site.
_________________
How to Make a Website
Back to top View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic
Affiliate Marketing Forum Index » Do-It-Your-Selfers
Page 1 of 1 All times are GMT

 

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Newsletter Sign-up

Sign-up Now!

How to make $1000 a month from scratch

Sign-up for our newsletter and receive our 77 page eBook "How to make $1000 a month from scratch".

Best of all it's FREE!

Your Host

Allan Gardyne

Learn from an affiliate veteran.

Your host, Allan Gardyne, has been earning a good living from affiliate programs since 1998.

Want a BETTER article writer? We will write good articles just for you.

Content Kingdom