SlideShare a Scribd company logo
1 of 16
in

     A tutorial made by:
     Elise Margaret R.
          Sumanga
PHP is a widely used
language which stands
          for
    PHP: Hypertext
     Preprocessor


 PHP files can contain
text, HTML, JavaScript
 code, and PHP code.
To test PHP
files, make
sure you’ve
 installed...
XAMPP is an               •Apache
                           •mySQL
  integrated
server package
                             •PHP
      of:                    • Perl


    XAMPP interprets scripts written in PHP.
To test if XAMPP
   is properly
    running...




    Locate
  “c:xampp”
     folder


   Open the
 xampp_start
  application
All PHP files should be
saved in the htdocs folder

   “c:xampphtdocs”
Let’s start this tutorial by
opening the text editor that
             you’ll
      fall in       with!
I am using Sublime Text 2 and this is what it
                looks like :D
PHP scripts     It starts
can be placed   with <?php
 anywhere in     and ends
the document.     with ?>


BASIC PHP SYNTAX
BASIC PHP SYNTAX
To output strings
 in the browser,
   we can use
  PHP’s echo or
       print
Let’s save our
All PHP files   work and name
should have           it..
 .php as its
 default file    Helloworld.php
 extension.
Again, all PHP files should be saved in the
     htdocs folder“c:xampphtdocs”
After saving, you’ll notice that the color of the code
                      changes 
There you
 have it. Now,          Open your
it’s time to test        browser
    the code.           and type:


http://localhost/[nameofyourfile.php]
So in our case:
http://localhost/helloworld.php

More Related Content

Viewers also liked

Presentació Anna Soldevila
Presentació Anna SoldevilaPresentació Anna Soldevila
Presentació Anna Soldevilallibredigital
 
Vejledning til medieforløb
Vejledning til medieforløbVejledning til medieforløb
Vejledning til medieforløbStine Dich
 
French ACe Testimonials - www.frenchace.com
French ACe Testimonials - www.frenchace.comFrench ACe Testimonials - www.frenchace.com
French ACe Testimonials - www.frenchace.comfrenchace
 
Presentació Antoni Oliver
Presentació Antoni OliverPresentació Antoni Oliver
Presentació Antoni Oliverllibredigital
 

Viewers also liked (6)

Presentació Anna Soldevila
Presentació Anna SoldevilaPresentació Anna Soldevila
Presentació Anna Soldevila
 
Vejledning til medieforløb
Vejledning til medieforløbVejledning til medieforløb
Vejledning til medieforløb
 
French ACe Testimonials - www.frenchace.com
French ACe Testimonials - www.frenchace.comFrench ACe Testimonials - www.frenchace.com
French ACe Testimonials - www.frenchace.com
 
Combustion
CombustionCombustion
Combustion
 
Presentació Antoni Oliver
Presentació Antoni OliverPresentació Antoni Oliver
Presentació Antoni Oliver
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Similar to first blog entry

Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHPDanWooster1
 
Upstate CSCI 450 PHP Chapters 5, 12, 13
Upstate CSCI 450 PHP Chapters 5, 12, 13Upstate CSCI 450 PHP Chapters 5, 12, 13
Upstate CSCI 450 PHP Chapters 5, 12, 13DanWooster1
 
Slide 1 - The University of Mississippi
Slide 1 - The University of MississippiSlide 1 - The University of Mississippi
Slide 1 - The University of Mississippiwebhostingguy
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLkangaro10a
 
Php1
Php1Php1
Php1Reka
 
Php1(2)
Php1(2)Php1(2)
Php1(2)Reka
 
First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with phpKanha Sahu
 
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...anshkhurana01
 
1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_masterjeeva indra
 

Similar to first blog entry (20)

Day1
Day1Day1
Day1
 
Basics PHP
Basics PHPBasics PHP
Basics PHP
 
Upstate CSCI 450 PHP
Upstate CSCI 450 PHPUpstate CSCI 450 PHP
Upstate CSCI 450 PHP
 
PHP
 PHP PHP
PHP
 
Upstate CSCI 450 PHP Chapters 5, 12, 13
Upstate CSCI 450 PHP Chapters 5, 12, 13Upstate CSCI 450 PHP Chapters 5, 12, 13
Upstate CSCI 450 PHP Chapters 5, 12, 13
 
Slide 1 - The University of Mississippi
Slide 1 - The University of MississippiSlide 1 - The University of Mississippi
Slide 1 - The University of Mississippi
 
PHP web design
PHP web designPHP web design
PHP web design
 
Create dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQLCreate dynamic sites with PHP & MySQL
Create dynamic sites with PHP & MySQL
 
Php
PhpPhp
Php
 
PHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERSPHP NOTES FOR BEGGINERS
PHP NOTES FOR BEGGINERS
 
Php1
Php1Php1
Php1
 
Php1(2)
Php1(2)Php1(2)
Php1(2)
 
Php unit i
Php unit iPhp unit i
Php unit i
 
PHP
PHPPHP
PHP
 
First steps of programming with php
First steps of programming with phpFirst steps of programming with php
First steps of programming with php
 
Php intro
Php introPhp intro
Php intro
 
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
Php mysql classes in navi-mumbai,php-mysql course provider-in-navi-mumbai,bes...
 
1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master1336333055 php tutorial_from_beginner_to_master
1336333055 php tutorial_from_beginner_to_master
 
Php
PhpPhp
Php
 
Php tutorial
Php tutorialPhp tutorial
Php tutorial
 

first blog entry

  • 1. in A tutorial made by: Elise Margaret R. Sumanga
  • 2. PHP is a widely used language which stands for PHP: Hypertext Preprocessor PHP files can contain text, HTML, JavaScript code, and PHP code.
  • 3. To test PHP files, make sure you’ve installed...
  • 4. XAMPP is an •Apache •mySQL integrated server package •PHP of: • Perl XAMPP interprets scripts written in PHP.
  • 5. To test if XAMPP is properly running... Locate “c:xampp” folder Open the xampp_start application
  • 6. All PHP files should be saved in the htdocs folder “c:xampphtdocs”
  • 7. Let’s start this tutorial by opening the text editor that you’ll fall in with!
  • 8. I am using Sublime Text 2 and this is what it looks like :D
  • 9. PHP scripts It starts can be placed with <?php anywhere in and ends the document. with ?> BASIC PHP SYNTAX
  • 11. To output strings in the browser, we can use PHP’s echo or print
  • 12. Let’s save our All PHP files work and name should have it.. .php as its default file Helloworld.php extension.
  • 13. Again, all PHP files should be saved in the htdocs folder“c:xampphtdocs”
  • 14. After saving, you’ll notice that the color of the code changes 
  • 15. There you have it. Now, Open your it’s time to test browser the code. and type: http://localhost/[nameofyourfile.php]
  • 16. So in our case: http://localhost/helloworld.php