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

Breadcrumbs in Notable Blogger theme

The modern themes available in Blogger are suitable for mobile devices; this is important in terms of indexing but Blogger not support breadcrumb of schema.org by default. If you add a few lines of code you can greatly improve your SEO and therefore your ranking in Google Search. I create a personal breadcrumb solution; if you have installed a responsive theme like mine in this article I explain how to add Breadcrumbs in Notable Blogger theme. How to add breadcrumbs in Notable Blogger theme First thing create a backup of you theme for security reasons You can add breadcrumbs in JSON-LD format or as following micro-data solution: Open your Blogger Dashboard Click on Theme >> Download a Backup for security reason Copy this code  <div class='post-body-container'>   Click Ctr+F and past the copied code then click Enter You will find this tag 1 time. Breadcrumbs in Notable Blogger theme Now copy the following code and past it below the tag : <b:if cond='data:view.

How to insert JavaScript into web pages

You have learned everything there is to know about HTML and CSS to start building your static website and now you would like to make it dynamic but you don't know how to insert JavaScript into web pages; right? Don't worry! Inserting the scripts into html files is really a breeze. If you read this article, in the next five minutes you will discover all the methods for inserting JavaScript into html files. How to insert JavaScript into HTML file JavaScript need HTML file to work.  Like CSS all methods of inserting JavaScript into a Web Page can be divided into two sections; add the scripts inside the TAG of  HTML file or by calling them externally. In detail we can insert JavaScript: Directly into Body of the HTML file. In the Head Tag and recall it in the body. With a relative or absolute external reference. Insert JavaScript into HTML file We will see an example of how to insert JavaScript shortly but first let's focus on when it is useful to do an explicit or implicit

Object cache problem of the AMP plugin for WordPress

If you are looking for one solution to the fix object cache problem of the WordPress AMP plugin displayed in dashboard from Site health; in this article I will show You how to do this in five minutes. Usually this situation arises when the installed theme is non an official theme and You have not cache plugin installed; anyway don't worry! We will solve the problem in a moment. Object cache problem of the AMP plugin for WordPress Why is important to enable persistent object cache for AMP  Accelerate mobile page (AMP), is latest technology of the Web. An amp page load very fast compared to to a standard Web page and Google search engine like very much this; so you can improve the ranking of your site and get more mobile users traffic. Persistent object cache If persistent object cache is enabled, WordPress work better; the images and files as CSS will loaded more fast. Every WordPress Hosting have a cache service, otherwise it would be very strange and I recommend that you consider