martes, 1 de enero de 2019

What is PHP


Do not know what PHP is? We tell you what it is, what problems it solves and how it works this programming language what is the most used in the world of Webs .

What is PHP

  • PHP are the acronym Hypertext Pre-Processor that is, hypertext pre-processor.
  • It is a general-purpose programming language that runs on the server side.
  • ] It is a interpreted language .
  • It has multiple ways to use since it can be used with scripts, in a structured way or programming objects.
  • It was created by Rasmus Lerdorf and appeared in the year 1994 .
  • It is created with the free software license PHPv3_01, which is a Open Source license .

What does PHP

PHP solve? ] is mainly used to create web pages to create content d Dynamic and to work with databases and HTML.

Supports most databases MySQL, PostgreSQL, SQL Server, MongoDB … almost all drivers exist, and if not, we can use the ODBC driver, which connects to any database.

How PHP works

Let's look at a simple example to check how PHP interacts with the browser . For this we are going to create a page using HTML:





hello world

We record the code in a file and display it in the browser so we would see the result, which would be the impression of "hello world". [19659016] Result of Hello World using HTML ” class=”img-responsive center-block” height=”730″ src=”http://bit.ly/2Vlx0Vu; width=”1440″ />

We could add PHP code within HTML like this:





hello world

We recorded the file and showed it in the browser and we see that a new phrase "hello world" appears below the previous one.

 Hello World result using HTML and PHP

The sentence below appears in a different format than the one above we have placed an HTML tag so that appear one size larger . This can also be done in PHP:





hello world

<? php echo "

hello world

"; ?>

We return to show the file in the browser and verify that both sentences are shown in the same way .

 Result of Hello World using HTML and PHP format

PHP from a script

Another option to use PHP would be with a script from the command line. For this we go to create a new file called terminal.php and in the same we insert this code:

No hay comentarios:

Publicar un comentario

Slutty Japanese Babe Toyed And Creamed

Japanese hot babe with big tits gets toyed and creamed. Author: sexualbabe Added: 02/11/2021