Article Directory :: Computers & Technology Articles

Ten Ways to Use PHP on your Website

Copyright © 2012 Chuck Matthews

Subscribe to Chuck Matthews's RSS feed using any feed reader!

Republish: EasyPublish
Published: 04Dec2009
Word count: 850
Viewed: 316 time(s)
Bookmark this article using any bookmark manager!
Get Free Content For Your Site

PHP is an open source programming language

PHP is a programming language that allows your website to go beyond a basic HTML document, and create an interactive experience. Open source means that the source code is available to someone with proper access to the site, so that they can easily make changes. When the Internet was first getting started, most of the pages on websites were basic HTML documents. Meaning that when you visited a page (about.html, for example), you downloaded all of the content of the page into your browser.

How Do I Know if I have a PHP Site?

If you are visiting a site, and you see that the page name ends with .html, this means that the page is most likely a plain old HTML page. If the page name ends in .php, then you the site is a php based site. Other dynamic programming languages include .jsp (Java Server Pages) or .asp (.NET or Active Server Pages). Occasionally you'll see sites that end in .html that have dynamic code embedded in them, but this requires some tricks to accomplish on the server.

We have several sites that use static HTML pages and have great results. There are some pages that have dynamic content, but most of the pages are built in straight HTML. It's great for search engine optimization, as some of those pages have been active for years. However, as the number of pages grow, it becomes increasingly difficult to update menu or navigation items, because it means you have to open each page, one at a time, and modify the contents.

Advantages of using PHP

PHP works a little differently. Instead of downloading the entire page (with the navigation, content and everything in one file), php allows you to embed programming code that isn't displayed to the end user. This programming code allows you to tell the page, "Insert the top navigation here." Or, "put the content for the page over there."

PHP allows you to personalize a page, for example, or automatically detect that a user is coming into the site from a mobile device and display a different version of the site that is optimized for their Blackberry or iPhone. PHP keeps most of the code for the site "behind the scenes" so that the page that is displayed to the end user loads quickly and doesn't require the browser to do processing work -- the work is handled instead by the server.

PHP Is Ideal For Working With Databases

One of the biggest advantages of a programming language like PHP is that it allows you to easily interact with a database. If you're unfamiliar with databases, think of a database as a souped-up form of an Excel spreadsheet. You have columns (i.e. page name, content, title) and rows. Rows typically would hold information that is organized by column headings.

PHP makes it easy to read information from a database, and then display information onto a web page. So, if you've ever used a site where you type in your zip code to find a store location near you, the system likely is taking your zip code, performing a database query (i.e. find all stores within 10 miles of the 80303 zip code) and display the results so that you can find your way. In order to do this, we have a geolocation database that allows us to tell the approximate distance between two zip codes.

You could do the same thing by building out a series of web pages that has each location. And while this is fine for three or four locations, as the number of locations increases, PHP allows you to automate the process.

Keep Content Organized

One of the ways we've been able to streamline the process of building websites is that we've standardized our process using our PageDirector content management system. There are many, many ways to build websites. Each designer seems to have a slightly different way of putting a site together. We are frequently asked to work on sites that other people have created, and in order to make simple changes to the content or navigation, we often have to dig around in the code to find where things are located. This takes time and isn't very efficient. The PageDirector system, however, keeps all of the content for the site neatly organized in a database table. So that anyone can easily find the content and make changes quickly and easily. One of our clients said to me in an email to me yesterday, "It's really efficient and a simple tool to use PageDirector. It makes my life easier being able to update the website fast."

How Does It Work?

When someone clicks on a link to go to a page, the system pulls the right content from the database, grabs the menu items from another location, and on-the-fly creates the page for a person.

Summary

PHP is a server-based programming language that allows you to create an interactive experience for your site visitors, and keep content and other information organized within a database.

PHP is a programming language that allows your website to go beyond a basic HTML document, and create an interactive experience. PHP is a server-based programming language that allows you to create an interactive experience for your site visitors, and keep content and other information organized within a database. This article explores some of interactive applications that can be developed using PHP applications.

Bookmark this article using any bookmark manager! Subscribe to Chuck Matthews's RSS feed using any feed reader!

EasyPublish™ this article - publishers click here

More articles by Chuck Matthews

Free Report!
Ten Essential Secrets Of Article Marketing ... Grab Your Free
Copy
Now:




We respect your privacy.


Need Content?
Regular Top Quality Content for your Blog, Ezine or Website ...
Delivered Direct,
For Free!

Click For Details



Arts & Entertainment
Automotive
Business - General
Computers & Technology
Finance & Investment
Food & Drink
Health & Fitness
Home & Family
Internet Marketing/Online Business
Legal
Pets & Animals
Politics & Government
Reference & Education
Religion & Faith
Self-Improvement/Motivation
Social
Sports & Recreation
Travel & Leisure
Writing & Speaking

More computing articles:

  • How Much Do You Know About Your Computer Operating System? (Jeff Schuman)
    Learning about your computer operating system can be easier then you think.

  • How To Choose Between Bluehost and 1and1 (Hanson Raider)
    With the trend of businesses going online becoming so common, it is very important to know which web host should be picked in order to get best value for money being paid. Bluehost against 1and1 hosting services

  • InMotion Hosting With WordPress Happens To Be Every Successful Blogger's Choice (Hanson Raider)
    One web host known for bagging the maximum number of awards and recommendations over the past ten years is InMotion. After stepping the field of web hosting back in 2001, the firm became an instant hit among multinationals and individuals. Wordpress of InMotion hosting is not just a tool but a one stop solution for all those newbies wishing to become a part of the blogging world.

  • Is Reading Bluehost Hosting Reviews A Good Idea? (Hanson Raider)
    Bluehost hosting company is one of the most known companies in the world of web hosting companies or web hosts that currently exist in the market today. Many people eager to learn more about Bluehost hosting and want to know if going through reviews of Bluehost hosting is a good idea.

  • Does Your Computer Need Maintenance? (Javier Snover)
    It's easy to buy the misconception that the technical revolution has all but eradicated the need for regular computer maintenance, and that networks are far too advanced to still have to worry about things as simple as gears, backup, firewalls, and all the other techie mumbo jumbo many of us consider as archaic as an 8-track.

We Automatically Distribute Articles
To Thousands Of Publishers And Web Sites:

Submit Article
All content is viewed and used by you at your own risk and we do not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributing authors and not necessarily those of this web site, or its owner, Takanomi Limited.
 
Copyright © 2012 Takanomi Ltd. Company no. 5629683. All rights reserved. | Privacy | Legal | Contact Information