first blog entry

601 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
601
On SlideShare
0
From Embeds
0
Number of Embeds
39
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

first blog entry

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

×