|
View previous topic
::
View next topic
|
| Author |
Message |
mrpeabody
Joined: 06 Mar 2006
Posts: 25
|
Posted: Fri Jun 16, 2006 9:19 pm
Post subject: PHP Template and the Search Engines
|
|
|
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 |
|
 |
nichefinder
Joined: 09 Feb 2006
Posts: 96
|
Posted: Sat Jun 17, 2006 3:36 am
Post subject: Re: PHP Template and the Search Engines
|
|
|
| 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 |
|
 |
Charlie
Joined: 22 Aug 2003
Posts: 3305
Location: UK
|
Posted: Sat Jun 17, 2006 8:35 am
Post subject: Re: PHP Template and the Search Engines
|
|
|
| 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 |
|
 |
mike929
Joined: 23 Jun 2004
Posts: 178
|
Posted: Wed Jun 21, 2006 3:53 pm
Post subject:
|
|
|
| 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 previous topic :: View next topic |
|