Statements in PHP
Unit - I
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
MHSSP
, 1.1 History & Advantages of PH
• PHP is a simple yet powerful scripting language designed for cr
HTML content.
• Originally derived from Personal Home Page tools, now stands f
PHP:Hypertext Preprocessor.
• PHP executes on the server, while a comparable alternative,
JavaScript, executes on the client.
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
MHSSP
, 1.1 History & Advantages of PH
• PHP is an alternative to Microsoft’s Active Server Page (ASP).
• PHP script is embedded within a web page along with HTML.
• Before the page is sent to a user that has requested it, the W
server calls PHP to interpret and perform the operations called
the PHP script.
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
MHSSP
, 1.1 History & Advantages of PH
• PHP can be used in 3 primary ways:
❑Server Side Scripting:
❑Command Line Scripting:
❑Client side GUI Applications:
• An HTML page that includes a PHP script is typically given a fil
suffix of “.php”, “.php7” or “.phtml”
• PHP scripts can only be interpreted on a server that has PHP
installed.
Prepared By: Khan Mohammed Zaid, Lecturer, Comp. Engg.,
MHSSP