How PHP Can Help Save You Time And Mistakes.

Written by Ben Rourke


(c)2004 by Ben Rourke

Here's a really simple way... to maintain and speed up your web site development.

As your web site grows, so doesrepparttar problem of maintaining it become more complex. Even a two or three page site can have a lot of detail in it. If you want to make any changes torepparttar 118027 links or content you have to do so for each page onrepparttar 118028 site, and then upload allrepparttar 118029 new information. All this can be very time consuming and also createrepparttar 118030 possibility of errors creeping in, which can make your site look less professional. This is where PHP can come to your assistance. I am not going to go into an explanation of PHP here, there are lots of sites online where you can find out more detail about it, if you wish to get more involved. Here, I am going to show some simple techniques to help you with your web site creation and maintenance, thus saving you lots of time and reducingrepparttar 118031 risk of errors.

Step 1: How to change information across a complete site easily using PHP.

Say you have a list of links acrossrepparttar 118032 top of your page and you want to maintain these links over a 20 page site. If you were to change one of those links, you would manually have to do it forrepparttar 118033 remaining 19 pages also. As you can appreciate this would be a time consuming process makingrepparttar 118034 changes and uploading each page seperately. Alsorepparttar 118035 potential to make a mistake is very great indeed.

However usingrepparttar 118036 method outlined below, you will be able to update complete sites in no time at all, virtually reducingrepparttar 118037 possibility of making mistakes to zero.

The trick is to use PHP to 'include' a header and a footer template called from your main file 'index.php'

Don't worry if this does not make sense at present as all will be explained shortly.

Here is an example of a index.php file:

========================================================== <?php include 'template/header.php'; ?>

Place your content here.


<?php include 'template/footer.php'; ?>

==========================================================

Point your browser to http://www.seazzypromotions.com/example to see it in action. Viewrepparttar 118038 source on that web page and notice allrepparttar 118039 HTML. Where did all that come from you ask? All will be revealed now, and then you are well on your way to easily generating and maintaining your sites with ease.

Meta Tags

Written by Alan Stewart


In order forrepparttar search engines, to rate your site, you have to have some special lines added into your html document. These lines tellrepparttar 105572 search engines, what your site is about, and what keywords you feel are related to your site. A common misconception inrepparttar 105573 web designing world, isrepparttar 105574 more keywords you haverepparttar 105575 better. This is not true. To be effectively indexed byrepparttar 105576 search engines, your keywords need to be listed inrepparttar 105577 body of your html document. But more importantly, they have to be logically listed inrepparttar 105578 body.

A few years ago, there was a "trick" that was used by web site owners, to put either real small text atrepparttar 105579 very bottom ofrepparttar 105580 page, of justrepparttar 105581 keywords to trickrepparttar 105582 search engines into thinking thatrepparttar 105583 keywords were used right. Guess what?.. The search engines figured this out and now will penalize a site for doing that. Another "trick' fromrepparttar 105584 past was to putrepparttar 105585 keywords asrepparttar 105586 same color ofrepparttar 105587 background ofrepparttar 105588 page. So they would not be seen byrepparttar 105589 surfer, but would be picked up byrepparttar 105590 search engines. Again, this has been figured out byrepparttar 105591 search engines, and they will penalize a site, by either banning them,from being indexed, or just never indexed. The rule of thumb to use is, write your pages with good content, utilizing your keywords in an effective manner. To many people create their website, forrepparttar 105592 search engines, not forrepparttar 105593 surfers. Last I heard, search engines don't do much buying of things onrepparttar 105594 internet, butrepparttar 105595 surfers still do. :)

Cont'd on page 2 ==>
 
ImproveHomeLife.com © 2005
Terms of Use