About PHP – the language for beginners

About PHP - the language for beginners

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 World\n"; ?>

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

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.

Filed Under: Articles

Anthony Gee About the Author: Anthony G. is an IT specialist with more than 9 years of solid working experience in the Web Hosting industry. Currently works as server support administrator, involved in consultative discussions about Web Hosting and server administration. One of the first writers in the Onlinehowto.net website, now writing for Free Tutorials community - he is publishing tutorials and articles for the wide public, as well as specific technical solutions.

Leave a Reply