PHP basics

45
rate or flag this page
Facebook

By nwmark20

The full form of PHP is preprocessor hypertext. Always begin a PHP page with <?php and always end with ?>. for example code php, close, then add html code in between as follows, <? Php code?>. You can define a variable in PHP as below =” Hello World”. If you write this code to the editor, this will print Hello World. Yes one thing is that, you can define variable in any places of that coding part. It’s not need to define a variable on the top of that program. Another thing is that echo. This syntax will help to print something on your screen. But one essential thing is that, always use ; at the end of a variable.

Requirements: You need a Java VM installed on your machine to use this extension.

Installation:To run the PHP, you have to install PHPTriad. After installing PHPTriad you have to start manually phpmyadmin. After that your PHP program will be properly executable.

Yes another important thing is that. Always save a php page in a .php extention. As a example; example.php. Otherwise your php program will not work.

Limitation: Security is the main fault to use this type of language. If you use PHP to develop a page, you can’t satisfy with this low level of security. Because at the time of develop a page in web site security portion is required.

Comments

No comments yet.

Submit a Comment
Members and Guests

Sign in or sign up and post using a hubpages account.



    • No HTML is allowed in comments, but URLs will be hyperlinked
    • Comments are not for promoting your Hubs or other sites

    working