SEO Class in Chicago, IL
Learn How To Optimize Your Website on July 26, 2013
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!
More SEO Content
Using Php Includes
#1
Posted 01 October 2007 - 01:26 PM
Thanks
Doug
#2
Posted 01 October 2007 - 02:16 PM
--Torka
#3
Posted 01 October 2007 - 03:30 PM
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
#5
Posted 01 October 2007 - 10:38 PM
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
Posted 01 October 2007 - 11:41 PM
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
Posted 09 November 2007 - 03:28 AM
Id like to take it a step back
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
Posted 09 November 2007 - 03:40 AM
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.
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
Posted 12 November 2007 - 05:08 AM
#10
Posted 12 November 2007 - 08:42 AM
That's a nice sentiment, but the search engine robots could care less....
#11
Posted 12 November 2007 - 01:47 PM
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...
(Please tell me these "global headers" don't include identical title and META description tags for every page!)
--Torka
Edited by torka, 12 November 2007 - 01:54 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users









