Obvious In Hindsight
Archive of tips, tricks and solutions for designers and programmers!

PHP: Include file

The include function is useful for streamlining  code across your site. Rather than the full code of you header section, for example, you can replace it the one line of code required for the include function. This is also advantageous for future modifications. This does not affect SEO (Search Engine Optimization) since search engines only detect the parsed code (output i.e. what you see in the source code).

<?php include(“somefolder/somedocument.html”); ?>


No Responses to “PHP: Include file”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: