Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Introduction to php

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 280
    Comment on it
    <html>
        <head>
            <title>Example</title>
        </head>
        <body>
            <?php
                echo "Hi, I'm a PHP script!";
            ?>
        </body>
    </html>
    

    PHP(Hypertext Preprocessor) is a widely-used open source general-purpose scripting language. It can be written in HTML. Here is a introductory example. Instead of lots of commands to output HTML, PHP pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The PHP code is enclosed in special start and end processing instructions that allow you to jump into and out of "PHP mode." What distinguishes PHP from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client. The client would receive the results of running that script, but would not know what the underlying code was. You can even configure your web server to process all your HTML files with PHP. The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. Don't be afraid reading the long list of PHP's features. You can jump in, in a short time, and start writing simple scripts in a few hours. Although PHP's development is focused on server-side scripting, you can do much more with it.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: