Skip to main content

Introduction to the PHP language

In this introduction to the PHP language, we define historical and distinctive aspects among the programming languages for the Web. Especially at the beginning of a course of study; the difference between a scripting language for the client and one for the server could be confusing.

Languages that take advantage of Web technology

The (Scripts) of the PHP language inserted in the Web pages are activated only when the user makes an HTTP call; therefore they are not suitable for creating Apps that can be installed but only be recalled from a Browser and are divided into two categories (client and server-side). PHP, unlike JavaScript, is a Server-side programming language; because it processes HTTP request scripts on the server.

How PHP works?

A classic example to imagine how the PHP language works are sending data through forms from a website to the server. The highlight of the PHP language is to:
  • Enter data into a database.
  • Modify or read data from the database.
  • Delete data from a database.
Obviously, with PHP language scripts we can do many other things for Web development!

Introduction to the PHP language: the origins

The history of PHP, initially (Personal Home Page), conceived by Rasmus Lerdorf; was born in 1995. Only a short time later, while the Apache Server was starting to make its way; Rasmus was able to integrate PHP with the Web Server thanks to the API (Application Programming Interface). Here are the PHP tools release mail.

Introduction to the PHP language
letter from rasmus lerdorf 


The leap in the quality of the PHP language

From its entry into the scene among the programming languages for the Web, the leap in the quality of the PHP language occurs in 2000 with version 4.0; thanks to Zeev Suraski and Andi Gutmans who rewrote much of the core of PHP making it more stable. On this occasion, the two renamed the language in (PHP Hypertext Processor) and between the changes they changed the parse with a new engine called Zend from which the company name also derives. In 2004, PHP version 5.0 was released which includes a new definition of objects.

Comments

Popular posts from this blog

The Java language

Initially, James Gosling 's Java language was called Oak; the lawyers pointed out that "oak" had already been recorded by others, so something else was chosen to give the language a name. The search method went from finding a suitable name for the language to one that wasn't; however time has disproved the method given Java's success. After some time, names suggested and then withdrawn, legend has it that the name Java was found in a coffee break in front of a hot and steaming cup of coffee from which the Java logo also derives. Introduction to the Java language The goal of the Java language has always been to create applications that adapt to various electronic devices; bypassing all the typical limitations of languages such as C and C ++ but maintaining the characteristics.  This choice also proved successful; because many programmers later started using the Java language, aided by their familiarity with their C background.  Networking A full range of ready-to-...

Learn to use the computer

Many people use the PC every day to connect to the network and to work but without knowing what the computer is and wondering how this is possible. We put a computer to work every time we buy with a credit card, withdraw from an ATM, pay a postal order, buy a train ticket, play video games and many other things. Understanding how the PC works inside is too much but starting from its components and the origins of  IT is already a good start. Learn to use the computer Basic computer components The computer is made up of several electronic components on printed circuits that interact with each other via micro pulses; if you want to learn how to use the computer, the main components of a PC are: A central processing unit (CPU); the "processor" used to process active processes on the data before outgoing transmission. RAM memories (random access memory) in which the bytes for processing are loaded; it is the dynamic memory of the computer and it is volatile; A graphics processing...

The PHP Data Type

The PHP Data Types, like in any programming language, are the abc of computer languages, both for the Web and in the desktop environment; they. In human language we use words to form sentences; while in computer science data types are used to define the elements that make up a logical expression. The data type in PHP The variables Assigning the data type to the variables in languages like C  for example Java , also called "typed", is mandatory; this must be done explicitly! As for PHP, being a pre-compiled language, the data type is implicitly assigned when a variable is created; to find out the type of data in a variable you can use the (get type off) function of PHP. The primitive data types in PHP If you can understand the data type concept, you are halfway to becoming a good developer. The PHP primitive data types are: Integer (decimal integers) to contain a value ranging (from -2.147,483,647 to 2,147,483,647). Float or "floating point" and double; they reach ...