Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



SEO Class in Chicago, IL

Learn How To Optimize Your Website on July 26, 2013


Looking for personalized in-depth SEO training among your peers?



High Rankings is offering a 1-day customized SEO training class in Chicago. Class size is limited so please sign-up now if you want in!



 


Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

Using Php Includes


  • Please log in to reply
10 replies to this topic

#1 Hazardpro

Hazardpro

    HR 1

  • Members
  • Pip
  • 9 posts

Posted 01 October 2007 - 01:26 PM

Hi all, is there any reason SEO wise why I shouldnt use PHP includes on my web pages?

Thanks

Doug

#2 torka

torka

    Vintage Babe

  • Moderator
  • 4,392 posts
  • Location:Triangle area, NC, USA, Earth (usually)

Posted 01 October 2007 - 02:16 PM

None that I can think of.

--Torka mf_prop.gif

#3 Darryl Payne

Darryl Payne

    HR 2

  • Members
  • PipPip
  • 10 posts

Posted 01 October 2007 - 03:30 PM

QUOTE(Hazardpro @ Oct 1 2007, 02:26 PM) View Post
Hi all, is there any reason SEO wise why I shouldnt use PHP includes on my web pages?

Thanks

Doug



Since PHP includes are resolved on the server side, the bots will never see them. They will be handed an html file, so you should be fine.

Darryl

#4 Hazardpro

Hazardpro

    HR 1

  • Members
  • Pip
  • 9 posts

Posted 01 October 2007 - 05:10 PM

QUOTE(Darryl Payne @ Oct 1 2007, 08:30 PM) View Post
Since PHP includes are resolved on the server side, the bots will never see them. They will be handed an html file, so you should be fine.

Darryl

Thats great thanks.


#5 jehochman

jehochman

    Jonathan Hochman

  • Active Members
  • PipPipPipPipPipPipPip
  • 1,555 posts
  • Location:Connecticut - Land of Steady Habits

Posted 01 October 2007 - 10:38 PM

I'll go further. I love server side includes for SEO because they facility rapid website development, help reduce errors, and allow you to quickly add, remove and change links sitewide.

One of the fundamental rules of programming is "don't repeat yourself". That means you don't want to write the same chunk of code over and over again, such as the menus, headers, footers, and sidebars that appear on multiple, even all, pages on your site.

Anything that makes your website better can help SEO. Anything that makes website development easier will also tend to have a positive effect because you'll be able to spend more time on the good stuff, content, usability, and promotion, and less time hunting bugs and struggling with spaghetti code.

#6 maleman

maleman

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 677 posts

Posted 01 October 2007 - 11:41 PM

I'll go even one step further:

As jehochman allowed, includes can make short work out of a big project. Changing link menus across a site can be a lot of work and can be accomplished in short order via includes.

But...well written anchor text and img alt properties are staples of good SEO. IMHO, derived from first-hand experience, using the exact same link menu site-wide doesn't properly exploit the power of linking.

In other words, spend some time writing anchor text. Mix it up on different pages. If you have a huge site and must use includes for linking, don't use only one file for the menu.

Create several files for the menu. In the separate files, mix up the anchor text with unique phrasing that targets the keywords of the destination page.

#7 vicplumb

vicplumb

    HR 2

  • Members
  • PipPip
  • 11 posts

Posted 09 November 2007 - 03:28 AM

Hello everyone,

Id like to take it a step back biggrin.gif

What about PHP require ? It does basically the samething as includes but is there a different as far as the search engine are concerned?

#8 MaKa

MaKa

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 856 posts
  • Location:Llantwit Major, Wales, UK

Posted 09 November 2007 - 03:40 AM

QUOTE(maleman @ Oct 2 2007, 04:41 AM) View Post
using the exact same link menu site-wide doesn't properly exploit the power of linking.


I don't necessarily agree with this. It could have numerous usability drawback where people get lost in your navigation. Site wide links are also thought to help with Google's site links tree structure for #1 positions.

QUOTE(vicplumb @ Nov 9 2007, 08:28 AM) View Post
What about PHP require ? It does basically the samething as includes but is there a different as far as the search engine are concerned?


No difference for SEs. The only difference is to what PHP does if it can't find the file. With an include a warning is displayed and processing is continued, with require processing is stopped and an error is generated.

#9 Lakshmi Narsimhan

Lakshmi Narsimhan

    HR 3

  • Active Members
  • PipPipPip
  • 93 posts
  • Location:India

Posted 12 November 2007 - 05:08 AM

Great post! One more thing is, "that's the beauty of using global headers". I am happy as my pages are having more Code to Text ratio which means light pages for Search Engine Robots. thumbup1.gif

#10 Jill

Jill

    High Rankings Advisor

  • Admin
  • 32,326 posts

Posted 12 November 2007 - 08:42 AM

QUOTE
I am happy as my pages are having more Code to Text ratio which means light pages for Search Engine Robots.


That's a nice sentiment, but the search engine robots could care less....

#11 torka

torka

    Vintage Babe

  • Moderator
  • 4,392 posts
  • Location:Triangle area, NC, USA, Earth (usually)

Posted 12 November 2007 - 01:47 PM

QUOTE(dziningspot @ Nov 12 2007, 05:08 AM) View Post
I am happy as my pages are having more Code to Text ratio which means light pages for Search Engine Robots.

Here's a link to the Vanessa Fox interview (back when she worked for Google) where she confirms that code-to-text ratio is irrelevant to Google...

http://videos.webpro...oogle-sitemaps/

It's a few minutes in to the interview when she hits this specific topic.

Not sure what you mean by "global headers" but if you see the code when you view source in a browser, the SE spider will see it when it comes to spider the page. If that's the case, you're not "lightening" your pages at all, sorry. Even if "lightening" the page made a difference, which it doesn't... nah.gif

(Please tell me these "global headers" don't include identical title and META description tags for every page!)

--Torka mf_prop.gif

Edited by torka, 12 November 2007 - 01:54 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users