Tuesday, 25 June 2019

Chapter -3 What is PHP



PHP originally created by “RASMUS LANDLORF” in 1995 with the use of C and Perl Programming language. For creating a visitors group on his page , that’s why in earlier PHP was known by Personal Home Page , but know a time PHP is known as PHP  hypertext preprocessor(a recursive acronym).  PHP is a server side scripting language it means PHP script run on server.

PHP is a powerful tool and also easily available in free(open source) with GPL(General Public License), used for website development. If you want to give better designing in your website, you can also embedded  php script  with html and css file.

So, we can say that PHP is a simply HTML file , which is save as by .php extension.

When PHP Script works:
Internet connection is works on client server architecture, where client computer send a request and server gives a response.  

As by your client computer, you can use browser software, to send a request.  Similarly, Server computer is also use php server software.

When user  send request by browser to Server to open a website . PHP server first manipulate web page by PHP script then after, server computer send response to client computer on web browser.
PHP script can be run only on server. So, if you want to  run php script on your system , first you make sure your system have a server software like XAMPP,WAMP,LAMP .

PHP Life Cycle

PHP Server software used inbuild Zend Engine as a compiler and run time engine. that's why Zend Engine also called a heart of PHP.

PHP life cycle work in 3 steps;

1. PHP script load on the memory by zend engine.
2.PHP script compiled by zend engine and create zend opcode.
3. opcode executes by run time engine ,then generate HTML file for send to client computer.

Technical Interview Question:
1. What is PHP?
2. Who is Known as father of PHP?
3. What was old name of PHP?
4. What is a name of scripting engine in PHP?
5. which programming language ressemble with PHP?
6. What do the initials of PHP stand for?
7. What is the main difference between PHP 4 and PHP 5?






No comments:

Post a Comment