How to start php programming? Reviewed by Momizat on . PHP is a scripting language. It is used to create a dynamic website. [php] //PHP standard tags <?php // statements ?> // PHP short tags, first short_open_ PHP is a scripting language. It is used to create a dynamic website. [php] //PHP standard tags <?php // statements ?> // PHP short tags, first short_open_ Rating: 0

How to start php programming?

PHP is a scripting language. It is used to create a dynamic website.

//PHP standard tags
<?php
// statements
?>

// PHP short tags, first short_open_tag enabled in php.ini

<? ?>
// first asp_tags enabled in php.ini

<% %>

We need some software to run php program.

Follow steps for Wamp sever
wamp

  • Install WAMP
  • After installation open the wamp and click on the wamp icon open some menu (Like above see images) Then go to www directory
  • Then create a project folder inside www directory (folder name like “myproject”) and create a php file inside myproject folder (Like file name “index.php”)
  • Write php program in index.php file.
    Note:- Php code always write inside php tag

    <?php
    echo "My first project.";
    ?>
    
  • To Run project click on the localhost menu of wamp then open a browser the select myproject from your project or change url http://localhost/myproject

Follow steps for XAMPP sever
xampp

  • Install XAMPP
  • After installation open the XAMPP and click on explorer button then open dailog box then select htdocs folder (Like above see images) Then create a project folder
  • To Run project click on the Admin button of Apache then open a browser and enter url http://localhost/myproject

Comments (1)

Leave a Comment

© 2014 Powered By