Membership is FREE, giving all registered users unlimited access to every Acorn Domains feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

SSI or PHP include?

Status
Not open for further replies.
Joined
Sep 28, 2006
Posts
402
Reaction score
6
Ive always used includes of some form or another but dont know which is better in the seo guise. Personally I cant see why either would be classed bad or wrong but cant harm having other opinions.

Code:
standard html written in php files to allow <?php include("aaa.php"); ?>

or standard shtml files with <!--#include file="aaa.html"-->

Both do the same thing but which should be used and more importantly WHY?
 
Makes no difference to SEO. As far as I am aware search engines don't weight pages with .php extensions or .shtml extenstions differently.

Use the PHP includes though because they're faster and are much less CPU intensive.
 
SSI is generally more of a security risk than PHP. I am pretty sure in theory it is easier to crash Apache using SSI than PHP.
However a bad PHP programmer can make PHP scripts just as insecure as SSI ones quite easily.
 
I would go the PHP route. As long as you are careful with what you are doing, you can avoid most, if not all, security problems. If you are concerned, then post up the code, and i'll check it out for you.

The benefit of using PHP will be that as your site develops+expands, you can slot in other PHP snippets that aren't possible with SSI such as DB connectivity, image generation, contact form etc...

Jee
 
Thanks for all your comments. Dont have a problem with security but thanks for the SEO pointers. Had a feeling it might be a considerations.
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Premium Members

Latest Comments

New Threads

Domain Forum Friends

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators
General chit-chat
Help Users
  • No one is chatting at the moment.
      There are no messages in the current room.
      Top Bottom