1. PHP Tutorial

    PHP is a programming language,It is used for making dynamic and interactive Web pages. PHP is a widely-used, free ans easy to learn.Before you continue you should have a basic knowledge in HTML and javascript.whenever we need to create a dynamic html file, we need to create a file contain our program logic as a php script with .php as the extension, we can add html tags and javascript etc in the same file.PHP file can open,read or close file in server and establish a database connection and query something from the database, anything can do like other scripting languages such as ASP,JSP etc

    The php script executed on the web server such as apache server and return html to the browser


    A php script can be write anywere in the file, A php script starts with <?php and end with ?>
    example: <?php echo "Hello world"; ?>
    This script print "Hello world" in your browser as output. The echo is a function used to print a value in the out put html

    Every code line in PHP must end with a semicolon. The semicolon is a separator between the instructions from another.If you forgot to put a semicolon,php compiler will return an error (common mistakes in programming) .In PHP, there are two basic statements to print anything in the web browser: echo and print.