PHP PPT Internship
PHP PPT Internship
216470316035
Name: Ved N. Patel
Enrolment:
216470316034
PHP Introduction
What is PHP?
PHP stands for PHP: Hypertext Preprocessor.
PHP is a server side scripting language, like ASP.
PHP scripts are executed on the server.
PHP supports many databases (MySQL, Informix,
Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc).
PHP is an open source software.
PHP is free to download and use.
PHP is similar to JavaScript, only on a server side
language.
PHP code is embedded in HTML using tags.
PHP Introduction
What is a PHP file?
PHP files can contain text, HTML tags and scripts
PHP files are returned to the browser as plain HTML
PHP files have a file extension of “.php”, “.php3”, or
“.phtml”
Each code line in PHP must end with a semicolon is a seperator and is
used to distinguished one set of instructions from another.
There are two basic statements to output text with PHP: echo and
print. In the example we have used the echo statement to output the
text “HELLO WORLD”.
NOTE:- The file must have a .php extension. If the file have a .html
extension, the PHP code will not be executed
Comments in PHP
In PHP, we use // to make a single-line
comment.
Or /* and */ to make a large comment block.
PHP Variables
A variable is used to store information.
Variables in PHP
Variables are used for storing values, like text strings,
numbers or arrays.
When a variable is declared, it can be used over and
over again in your script.
All variables in PHP starts with a $ sign symbol.
The correct way of declaring a variable in PHP:
$var_name=value;
THANK YOU