PHP
PHP is a hypertext preprocessor . It is widely used for Open sorce scripting languae. PHP scripts are executed on server. PHP is a server side scripting language that is embedded in HTML. It is used to managed dynamic content and databases.
PHP Files
PHP file contain HTML,CSS,JavaScript. PHP codes are executing on server & result is return to browser as HTML.
PHP file have extension .php.
PHP can generate dynamic content.
PHP can create Open,write,delete,close file on server. PHP can collect form data. PHP can add, delete, modify data in database.
PHP can run on various platform like windows, linux, mac. PHP supports wide range of database.
Syntax of PHP:-
<?php
-------
?>
To Print any value
ECHO and PRINT is used. Echo is widely used than Print because echo is very fast than Print,therefore Print is less used.
<?php <?php
echo"Hello..."; print"Hello...";
?> ?>
Comments in PHP
Comments have a two types:-
Single line comment:- (# is used for single line comments. )
Multi-line comment
No comments:
Post a Comment