Networking, Programming and Graphics - Tutorials
ONLINEHOWTO.net Tutorials Category
About PHP - the language for beginners

About PHP - the language for beginners

by Tony Potter

Tony Potter
About PHP - the language for beginners

The most popular scripting language used for creating interactive and dynamic websites is PHP.
This is not just a statement, but a real fact according to the Internet research companies.
The reasons are many – flexible, compact, easy for learn and usage, including almost all abilities for creating dynamic, contemporary website, covering even the biggest expectations.
Created in 1994 as a personal project by Rasmus Lerdorf called “Personal Home Page Tools”, PHP was revised by group of developers and quickly find a place in Internet as PHP: “Hypertext Preprocessor” as in the same time keeps the idea of usage simplicity.
Till today PHP is really strong script language with many abilities for web developers and probably the easiest for learning and usage for beginners in programming.

It is fact that PHP allows you to achieve a particular goal with just few rows of code, since if you are using other programming languages the same goal may need to write dozens of code lines. This is the main reason why the language has became so popular among the web developers. Using PHP save time and in the same time allows to be created interactive website even by beginners.

Here is an example of how some languages display the sentence ‘Hello world’. You will see that with PHP it will be just a line. Imagine what is the difference will be if it is a matter of thousand lines of code.

*********************************************
Comparison between PHP and other popular languages.

-----
Java
-----

import javax.swing.*;

class HelloWorldSwing {

public static void main(String args[]) {
JFrame mainWin = new JFrame("MainWindow");
JButton button = new JButton("Hello World");
mainWin.getContentPane().add(button);
mainWin.pack();
mainWin.show();
}

}

-----
C++
-----

using System;
class HelloWorld {
static void Main() {
Console.WriteLine("Hello World");
}
}

-----
PHP
-----
<?php echo "Hello Worldn"; ?>

*********************************************


PHP usage.
As we mentioned already the big popularity of PHP is mainly because of its flexibility, especially when it must be included into HTML documents. There are arguments about that the PHP is a mixture of Perl, Java and C, but it is most close to C. In this way PHP offer easily abilities for complicated mathematic calculations as well as network functions, mail service, regular expressions and many other options. But indisputably the biggest power of PHP is the ability to use databases. PHP supports the most popular databases like MySQL, PostgreSQL, Oracle, Sybase, mSQL and many others which allows easy and effective websites.

Bellow is a list of tutorials on our website regarding PHP. Also we will continue to fill our collection with PHP examples about common and specific issues as well as starter PHP tutorials.

Create PHP Testimonials

PHP 5: MySQLi Prepared Statements

Simple File or Image Uploads Using PHP HTML

Working with PHP Arrays

Beginning PHP-GTK: Creating a Simple Interface

Sending e-mails with PHP mail() function

PHP Coding Tips and Tricks

How to use PHP while operator

Send header to browser with PHP

5 Tips to Write Shorter PHP Code

Limit Characters From Your Text

PHP info

IP Location with PHP

How to return more than one value with Functions

PHP - Step by Step

Howto Integrating Flash file in PHP document

Working with PHP functions

PHP Array Sort

Empty Directories from the files

Unix time converter online

How to make "Page Load Time" stopwatch on PHP

How to convert/encode files to FLV using FFMPEG and PHP

Coloring PHP code output in text

Check MySQL database connection using PHP test script

Also you can visit the official website php.net for changes and updates.

With this article ONLINEHOWTO.net represents citation or only personal opinion of the author and don't targets advertising or discriminating any company, product, service, technology, inovation, etc.
Post Comment


Other Articles:

Google optimization - How to be "Number One" in Google Google optimization - How to be "Number One" in Google

2008-Mar-04 by Ivory Morhuld
When we talk about Google optimization, the main and frequently asked question is: "Can I be the first in Google results?".

Negative on-page optimization factors Negative on-page optimization factors

2009-May-29 by Tony Potter
Since we discussed the positive SEO factors in On-page optimization tutorials, the next step is to describe the negative on-page optimization factors.

Google Chorme, a new way of surfing Google Chorme, a new way of surfing

2010-Feb-18 by Stephen Think
I have been using Google's new product for about 4 months now and today I will share my experience and my opinion about this new browser.

On-page (landing page) optimization tutorials On-page (landing page) optimization tutorials

2009-May-20 by Tony Potter
There were many questions and tutorial requests submitted on our website asking for more information about search engine on-page optimization and ranking factors.

Why to use PNG format for graphics Why to use PNG format for graphics

2010-Feb-28 by Stephen Think
Besides the name I have chosen in this article we will try to answer not one but two questions about the new image format on the web.
Need a specific tutorial? Do not hesitate and submit a request!
Your e-mail: