01 Php Introduction

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    01 Php Introduction - Presentation Transcript

    1. Day 1 PHP Introduction Geshan Manandhar Developer, Young Innovations Pvt. Limited www.geshanmanandhar.com
    2. What is PHP
      • PHP, which stands for “PHP: Hypertext Preprocessor”.
      • PHP is a widely-used Open Source general-purpose scripting language.
      • It is especially suited for Web development and can be embedded into HTML.
      • It was originally created by Rasmus Lerdorf in 1995.
    3. More About PHP
      • PHP is free software released under the PHP License.
      • PHP typically runs on a web server that takes PHP as input and gives out HTML pages as output.
      • PHP is installed on more than 20 million websites and 1 million web servers.
      • PHP has a syntax similar to C and Java.
      • The current version of PHP is 5.2.x.
    4. Features of PHP
      • It is Free and Open source.
      • Easy to learn but hard to master.
      • Connects with 20+ databases.
      • Version 5+ supports OOP.
      • Multi-platform compatible.
    5. The LAMP Stack
      • Apache is the web server.
      • MYSQL is the database server.
      • PHP is the backend coding language.
    6. PHP Trend
    7. What will you learn
    8. Software required to run PHP on Windows
      • XAMPP
        • X- for all platforms (windows, linux…)
        • A- Apache web server
        • M- MYSQL with PHPMyAdmin
        • P- PHP
        • P- Perl
      • That’s all you need you must have good IDE to code.
    9. IDEs for PHP development
      • IDE – Integrated Development Environment
        • Adobe Dreameweaver
        • Notepad++
        • Zend Development Studio
        • PHP Eclipse
    10. Ways to code your PHP website or web Application Source: http://geshan.blogspot.com
    11. Basic PHP Program
      • Hello world
      • X:xampphtdocsmy_folderfirst_prog.php
      <?php //starting delimeter echo “Hello world”; //print hello world ?> Add some complication: <?php $message = “Hello world”; print $message; ?>
    12. Delimiter, tags and comments
      • <?php //php code ?> - long tag
      • <? ?> - short tag
      • <% %> - ASP style not preferred
      • <script language=&quot;php&quot;>         //php tag     </script> - uncommon
      • <?= ?> - shortcut for echo
      • //line comment
      • /* block comment */
    13. PHP Data Types
      • Boolean
      • Integer
      • Float
      • String
      • Array
      • Objects
    14. Another simple program
      • Simple price calculation
      • <?php
      • $qty = 5;
      • $price = 10000;
      • $amt = $qty*$price;
      • echo “Rs. “.number_format($amt, 2);
      • ?>
    15. Lets Install XAMPP
      • Lets install XAMPP and run 2 programs
      • Ask questions.

    + Geshan ManandharGeshan Manandhar, 5 months ago

    custom

    411 views, 1 favs, 0 embeds more stats

    Introduction to PHP.

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 411
      • 411 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags