XAMPP and its components, Difference between PHP&Perl.

XAMP and its components
XAMP and its components

 XAMPP and its components

What is XAMPP?

XAMPP is an abbreviated word which comes from five words, written as follows:

  1. ‘X’ refers to Cross (Cross-platform)
  2. ‘A’ refers to Apache (HTTP Server)
  3. ‘M’ refers to MySQL (Database)
  4. ‘P’ refers to PHP (Server-side scripting language)
  5. ‘P’ refers to Perl (Also scripting programming language)
XAMP and its components
XAMP and its components

So, we can define XAMPP as:

“XAMPP is a free open source cross platform consists of Apache HTTP Server, database MYSQL and Server side scripting language which is PHP and other scripting language Perl.”

XAMPP and its components has defined, now explanation of XAMPP and its components are follows.

     XAMPP is a cross platform of four main components:

1. Apache:

Apache is the purely web server application which process and deliver the web contents from website to computer or server. Now-a-days, Apache is very popular web server and more than 54% of all websites use Apache web server.

2. MySQL Database:

Any website is simple or complicated, it requires a database to store and manipulate data. XAMPP use MySQL database which is the most popular open source database management system.

3. PHP:

As we know that PHP stands for Hypertext Preprocessor. It is totally server-side and scripting high level language. It is mostly used server language and many popular websites are in PHP such as WordPress and Facebook. It is also open source, easy for learning and understanding and more compatible with MySQL. These features makes a lot of role in its popularity.

4. Perl:

Perl is also high level programming language. It is mostly used in System Admin, dynamic and networking programming. It is not popular like PHP but has many application.

These are the XAMP and its components. Now the comparison of the languages are:

XAMP and its components
XAMP and its components

Similarities between PHP and Perl language

PHP as well as Perl are high level scripting languages.

Both PHP and Perl languages cannot execute within browsers window

PHP and Perl can obtain files from other domains on the Internet.

Both languages support MySQL database.

Files can be updated on server in both languages.

There is no declaration of data-type required for any variable before its use, in both languages.

Both PHP and Perl more interpret with double-quoted string (“string”) than single-quoted string(‘string’).

Dissimilarities between PHP and Perl language

PHP require HTTP to execute but Perl does not require HTTP for any execution.

The source code of PHP is within the web-page file but the source code of Perl is not in the web-page file.

PHP has single array data-type, which plays the role of both arrays or lists and hashes in Perl.

By default, in PHP, the scope of variables are local but in Perl, scope variables are global.

Perl gives us only single line comment using #’ symbol, but PHP provides us C-style multi-line comment (/*…………….*/) and Java-style single line comment (//…………).

Some keywords have different spelling in both languages, such as PHP has ‘elseif ‘but in Perl it is ‘elsif ‘.

              XAMP is lightweight and simple Apache distribution which makes it very easy so that you can make a local web-server for different purposes such as practicing and testing your work without using Internet, etc. W It has everything, you have to need for creating a complete working environment. For example,

  1. You need a Server and XAMPP has Apache server application.
  2. You need a database to store data and to manipulate with data, it has MySQL database for these purposes.
  3. You need a server side scripting language, XAMPP provides two popular languages such as PHP stands for Hyper-text Preprocessor and the Perl language.

This is our topic that what is XAMP and its components.

You also want to see how to install XAMPP.