EzineArticles - Expert Authors Sharing Their Best Original Articles



  Submit Articles
  Members Login
  Benefits
  Expert Authors
  Read Endorsements
  Editorial Guidelines
  Author TOS

  Terms of Service
  Ezines / Email Alerts
  Manage Subscriptions
  EzineArticles RSS

  Blog
  Forums
  About Us
  What's New
  Contact Us
  Article Writing Shop
  Advertising
  Affiliates
  Privacy Policy
  Site Map


Advanced Search


Would you like to be notified when a new article is added to the Web-Development category?

Email Address:


Your Name:


Prefer RSS?
Subscribe to the
Web-Development
RSS Feed:

Php - An In-Depth Look
Print This Article Ezine Publisher Send To Friends Add To Favorites Post A Comment Suggest Topic Report Author

What is PHP?

PHP stands for PHP: HyperText Preprocessor, it is a server-side scripting language, and as the name goes, it is to create dynamic and interactive Websites for your visitors. Maybe you currently make your Websites in HTML? HTML alone cannot create dynamic Web pages, HTML is clearly defined as a static language, as it is always static and mainly is used for structuring (or styling, in some cases) a document (or a Web page, if you like).

What do we mean by server-side scripting?

You may already know, but HTML is a client-side language, so the browser translates the HTML code into "bytecode" that the computer can understand, and so the computer translates bytecode into what we can clearly understand, text, for example. Server-side scripting is a little different, a little bit more added to the story. As with PHP, server-side scripting languages have an interpreter inside a machine, that translates the code (in our case, PHP code) to HTML code (that the browser can understand), and then the same process will take place with the browser translating the HTML code to bytecode, and so forth. With server-side scripting languages, you don't need anything adding to your browser or computer, as the interpreter inside the machine that hosts the particular Website does most of the work.

What's the fuss with server-side scripting languages, then?

The thing that makes server-side scripting a must nowadays is because it can generate dynamic Web pages, but what do we mean by dynamic Web pages? Well, imagine you wanted to start a forum, and you used HTML. Okay, you used a form to submit the data and it is sent to your e-mail address, and you have to edit the static Web page every time you want a new post added. That, to me, would be the most annoying job of creating a Website. However, with PHP (or any other server-side scripting language, for that matter), can be completely automated, and you'd not have to edit your file even once! The thing that PHP does, is sends the form data to a different page, saves it in "pre-defined" variables (things that store a value), and using something called a "while loop" that continually loops all the posts saved in the Web page - and that's it! PHP stores the posts in a MySQL database (something that holds data, if you like, like member accounts, etc) and uses that as long-term memory.

But if we're talking about server-side scripting languages, what makes PHP different from the rest? Well, simply put, PHP is probably the best thing that has come into the server-side scripting genre. If you have heard about other scripting languages like Perl or ASP/ASP.NET, you'll come to find that they are extremely hard to learn from. Put it this way, the majority of Web developers that use ASP.NET, for example, are those who have come from a different programming background, like have known VBScript, or other languages that's in relation to ASP.NET, the same with Perl. The difference between PHP and the rest, is PHP is incredibly easy to learn, especially for the newbies towards this industry, and PHP has took several steps to ensure an easy introduction to those newbies to the world of programming. Let's do an example, lets see which is the easiest to understand, out of PHP, VBScript and Perl, by doing a simple "Hello World" program, that outputs text to a Web page:

PHP:

echo "This is some text that'll be shown in a Web page...";

VBScript/ASP.NET:

Response.Write("This is some text that'll be shown in a Web page...");

Perl:

#!/usr/bin/perl

print "content-type: text/html nn";

print "This is some text that'll be shown in a Web page...";

Okay, now I am not going to say things like "well, obviously PHP is the easiest to understand" - as obviously, we all have different preferences, but what I can say is, that they all do the same thing. Which seems the most logical to you? In my opinion, the two most logical ones for me is PHP and VBScript/(ASP.NET).

Now it's up to you which one you want to go ahead with, experiment which one is best for you, after all, we all have dfferent tastes.

Good luck!

Below are a few resources to get started with PHP:

# - w3schools.com

# - php.net

# - mysql.com

Other Recent EzineArticles from the Internet-and-Businesses-Online:Web-Development Category:

Most Viewed EzineArticles in the Internet-and-Businesses-Online:Web-Development Category (90 Days)

  1. How to Create a Web Page Shadow Using Photoshop Slice Tool and HTML Coding
  2. Find Out the Best Free Website Creator
  3. Make Your Own Websites - What You Should Know
  4. Choosing Java Vs .Net For Web Development
  5. How to Put Hyperlink in an Image to Create a Clickable Picture!
  6. Under Construction Website - Create an Under Construction Web Page to Protect Yourself !
  7. How Much Does a Website Cost - An Inside Look From a Web Designer
  8. Creating Web Pages With PHP, CMS, and Joomla
  9. How to Create an HTML Image Background For Your Webpage
  10. Start My Own Website - Make Millions While I Sleep
  11. Build My Own Website in 2 Easy Steps
  12. How to Write Specifications For a Website
  13. Add a Flash Event Calendar to Your Website
  14. The Best Free Website Builder Service on the Internet
  15. Understanding the Basics of Owning Your Own Website

Most Published EzineArticles in the Internet-and-Businesses-Online:Web-Development Category

  1. Make a Website Free - 5 Benefits of Building a Website For Your Online Business
  2. 4 Reasons Why Its Important to Have a Website For Your Business - Or You Will Not Make Any Money
  3. Understanding the Basics of Owning Your Own Website
  4. How to Build a Website - Know More About It
  5. Make Your Own Website the Quick and Easy Way - Without Sacrificing Quality Or Options
  6. Make Money Online - Landing Page Creation
  7. How to Design a Social Networking Website
  8. Marketing Your Website Online
  9. Web Development Estimation
  10. Top 6 Website Basics You Must Know
  11. Under Construction Website - Without an Under Construction Web Page You Are in DANGER!
  12. Photography Website Music and Why it Hurts Your Business
  13. Creating Your Website - What You Need to Do to Make it LIVE!
  14. How to Build a Small Business Website For Less Than $100
  15. Photography Website How to For the Professional Photographer

 

This article has been viewed 98 time(s).
Article Submitted On: February 21, 2008



© EzineArticles.com - All Rights Reserved Worldwide.