PHP is a powerful free open source web scripting and programming language it's widely used in the web development industry as a result of its speed stability and cross-platform compatibility. This means that PHP can run on a Linux production server a Windows development server and on a Mac.

Php stands for hypertext Preprocessor PHP Is an Object-oriented server-side scripting language that is widely used it is an interpreted language it is a simple language easy to use.

How PHP CODE WORK

we were visiting a Web page from our home computer that contained some PHP code our request travels through the web to the web server hosting the Web site in all of its files in order to process our request the webserver requires various components to execute the PHP script.

First, the webserver would need an Apache installed to intercept the request and retrieve the PHP file from our Web server, Apache would then pass the file and determine that certain parts of the page have PHP code that needs to be executed upon. 
It has a lot of PHP plugin built-in that can execute the instructions contained within a PHP script as example a common set of instructions includes retrieving and inputting data into a database.

Although the script can be something as simple as a basic calculation regardless Apache returns the script and renders the page as instructed by the PHP code. It then sends the file back through the web to your PC and ultimately to your web browser. 
Note that in this diagram we illustrate the database is in my sequel database.

Features of PHP 

  • The script is written in PHP much faster than other language 
  • it is an open-source software 
  • it is platform-independent i.e one application developed in the window can be used in another 
  • platform as well  
  • it is compatible with almost all local servers which are available today. it can be embedded with any HTML Document 

How to create PHP Environment 

install any local server (xampp wamp lamp) according to your operating system after installing this you are ready to code in PHP.
  • xampp : available for window mac and Linux 
  • wamp : you can use in window 
  • Lamp : used in Linux 

PHP ECHO

Is a language construct. you do not need to use parenthesis if you use multiple parameters then it requires parenthesis.

PHP echo is used to print 

  • sting, Multiline string 
  • escaping characters 
  • variables 
  • array etc.

PHP PRINT 

same like PHP echo print is also a language construct .you do not need to use parenthesis if you use multiple parameters then it requires parenthesis.php print always written one (1).

PHP Print is used to print 

  • sting, Multiline string 
  • escaping characters 
  • variables 
  • array etc.









Post a Comment

Previous Post Next Post