PHP
PHP is a server scripting language .
PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language.
PHP scripts are executed on the server. It is a powerful tool for making dynamic and interactive web pages.
PHP is a widely used, free and efficient alternative to competitors such as micro soft's ASP.
PHP runs on various platforms (windows, Linux, Unix, Mac OS X etc.)
PHP supports a wide range of database.
PHP is compatible with almost all servers used today (Apache, IIS etc.)
PHP is easy to learn and runs efficiently on the server side.
Why PHP is an amazing and popular language
It is deep enough to run the largest social network (Facebook) !
It is powerful enough to be at the core of the biggest blogging system on the web (WordPress) !
It is also easy enough to be a beginner's first server side language.
PHP File :-
PHP files can contain text HTML, CSS, JavaScript and PHP code.
PHP code is executed on the server and result is return to the browser.
PHP files have extension ".php"
What can PHP do ?
PHP can generate dynamic page content
PHP can create, open, read, write, delete and close files on the server.
PHP can collect form data
PHP can send and receive cookies.
PHP can add, delete , modify data in our database.
With PHP we are not limited to out images, PDF files and even flash movies.
PHP can encrypt data.
PHP can be used to control user-access
PHP Syntax:-
PHP Script starts with <?php> and ends with ?>
A PHP file normally contains HTML tags
A PHP script that uses a built-in PHP function "echo" to output the text on a web page.
PHP statement end with a semicolon (;).
Ex-
<!DOCTYPE html>
<html>
<body>
<h1> My first php page</h1>
<?php
echo" Hello!";
?>
</body>
</html>
O/P
My first php page
Hello!
No comments:
Post a Comment