PHP is the widely-used Server side Scripting Language and it is free Software to download and use. PHP is perfectly suited for Web development and can be embedded directly into the HTML code.you have to learn php in this php tutorial small php example and small php programming code is available
What is PHP Adavantages?
1)Reduce the time to create large websites.
2) PHP is compatible with almost all servers ,Example:Apache, IIS, etc.
3)To Allow creation of shopping carts for e-commerce websites.
4)PHP runs on different platforms Examle :Windows, Linux, Unix, etc.
What is Features of PHP:
1)Cookies:-PHP transparently supports HTTP Cookies.
2)Sessions:-PHP Supports sessions to allow you to preserve certain data across subsequent accesses.
3)Command line:-PHP supports many command line options.
4)file uploads:-PHP allows WEb users to upload single or multiple files.
5)Persistent Database Connections:-PHP Supports Persistent connections to database servers.
6)Safe mode:-PHP supports a safe mode with many built in functions restricted or disabled.
7)Using Remote files:-PHP allows you to open remote files with internet protocols like HTTP or FTP.
8)Connection handling:-PHP maintains a connection in 3 possible states:NORMAL,TIMEOUTand ABORTED.
PHP Syntax:
A PHP scripting block always starts with <?php and ends with ?>
or
the shorthand PHP tag that requires shorthand support to be enabled on your server…
<?
?>
A PHP file Basically contains HTML tags, just like an HTML file, and some PHP scripting code.
Example:
a simple PHP script which sends the text “Hello World” to the browser:
<html>
<head>
<title>My First PHP Program</title>
</head>
<body>
<?php
echo “Hello World”;
?>
</body>
</html>
Save this file firstprogram.php and after Execution of your local system localhost/firstprogram.php the Result seen as below
Output:
Hello World
Each code line in PHP must end with a semicolon.

0 comments:
Post a Comment