Advertise here.

Friday 24 August 2012

PHP Tutorial Lesson #1 Introduction


What You Should Already Know


Before you continue to learn more about PHP you should have a basic understanding of the following:

HTML/XHTML
JavaScript

If you want to study these subjects first, find the tutorials on our Home page.


What is PHP?


Founded in 1995, PHP originally stood for “Personal Home Page”, but now generally defined as: “PHP: Hypertext Preprocessor. It was originally designed to create dynamic and interactive websites. This is a widely used open source general-purpose programming language. PHP is a high-level language, that is, in general, more people-friendly (and easier to learn) than other programming languages such as C, ASP or ASP.net.

PHP was originally designed for use in website development, but soon grew into a much stronger language. PHP scripting language embedded in the primary, which means that the actual PHP code embedded in HTML code. If so, the PHP web server process web pages before the user’s browser display.

Advantages of PHP

PHP is popular because it is directly embedded in HTML coding.

PHP is used on all major operating systems and supports most web servers.

PHP development is a major component of the Internet, so a rapid development time, and solve scenarios much quicker than some other web design languages.

The latest version of PHP is a very stable and mature programming language used on the web much like Java and Microsoft C #.

This is an open source, so it’s free!

Database: It is very easy to make simple scripts that allow your website to communicate with a database write.

Cross Platform: Both the PHP engine and the PHP code can be used for almost all platforms, making it very versatile.

Development Tools: You only need to work with a text editor for PHP, there are no translators and development.

What can PHP do?

PHP generally runs on a web server where the PHP code for input and output of Web pages, but you can also use command-line scripting and client-side GUI applications. PHP is an extremely versatile language will create a high-end, stable sites in many bells and whistles. Here are some things you can do in PHP:

HTML Web Forms

Information stored in databases

Remember visitors (cookies and sessions)

Working with arrays

Work Files (File Management and downloads)

Processing and generating XML (also useful for high-volume product of the e-commerce)

Determine what browser the visitor

How does it work with PHP?

As the name (“PHP: Hypertext Preprocessor”) suggests, PHP energized “preprocessor” hypertext on the server side. This usually means that if a PHP script (saved as a PHP file) is running a web server, this is the programmed actions and returns the HTML code, which is then returned to the client browser executes it. The PHP script itself is not included in the HTML to send to the browser, so the PHP code in a safe and invisible to the user.

For example, consider the following simple PHP statement. (This example is just to show the basic syntax of PHP in action. Any detailed discussion of PHP code is beyond the scope of this article.)

? <Php echo “Hello World <p>”? >

In a statement,
<? Php in the PHP opening tag? > This is the closing tag, and the PHP echo statement, which says that the PHP output, the following text as plain HTML. The PHP script processes the PHP statement and outputs are as follows:

<p> Hello World </ p>

This is a normal HTML statement is delivered to the user’s browser. PHP is not in itself a statement delivered to the browser, so the user never sees the PHP commands.

PHP is used to improve the website.

PHP has many potential functions are used for specific websites, including the following:

1. Ensure the website.

PHP can be used to secure site (or parts of the website) that the client has a valid username and password. It can be used to reward customers and a more exclusive “membership” is part of the business to build.

2. Cooperation with Web Forms.

PHP is an HTML form and the process of displaying the information the user is an excellent way to learn more about the customers, asking them to provide information about the profile and interests to gather information that may be.

3. Communicate with the databases.

PHP is especially skillful in the management of databases, and stores user data, or to request information from the user. PHP handles connecting to the database and communication, it is not necessary to know the technical details for connecting to or exchanging messages with the database. Tell me the name of the database, PHP, and where it is, and PHP provides the details. All major databases are currently supported by PHP.

4. Customer Loyalty features.

You can also use PHP functions in many different locations, to further help you build customer loyalty, including interactive polls, a guestbook and a message board as well.

The popularity of PHP continues to grow rapidly, because there are many technical advantages over other solutions. PHP is fast (because it is embedded in HTML code, the time to process and load a Web page is relatively short), PHP is free (open source software), PHP and versatile (it runs on many operating systems including Windows , Mac OS, Linux and most Unix versions).

Perhaps most importantly, a very well established in the PHP language. Many users, online communities, to very large amounts of information (and scripts) are available. A lot of experience behind us, some dynamic features of PHP is also a cost-effective and low-hassle way to increase stability on its website.

PHP is probably the most popular scripting language on the web. It is used to enhance web pages. With PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. If you've come across a web page that ends in PHP, then the author has written some programming code to liven up the plain, old HTML.

PHP is known as a server-sided language. That's because the PHP doesn't get executed on your computer, but on the computer you requested the page from. The results are then handed over to you, and displayed in your browser. Other scripting languages you may have heard of are ASP, Python and Perl. (You don't need to know any of these to make a start on PHP. In fact, these tutorials assume that you have no programming experience at all.)

The most popular explanation of just what PHP stands for is "Hypertext Pre-processor". But that would make it HPP, surely? An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools. At least you get the letters "PHP" in the right order!

But PHP is so popular that if you're looking for a career in the web design/web scripting industry then you just have to know it! In these tutorials, we'll get you up and running. And, hopefully, it will be a lot easier than you think.

0 comments:

Post a Comment