Why to use PHP

1,410 views
1,299 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,410
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
40
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Why to use PHP

  1. 2. PHP For Beginners
  2. 3. <ul><li>PHP is an open source object oriented programming language. </li></ul><ul><li>PHP is server side scripting language. </li></ul><ul><li>Easy to learn. </li></ul><ul><li>Syntax similar to C language. </li></ul><ul><li>Easily embedded into HTML to create dynamic web page contents. </li></ul>About PHP
  3. 4. <ul><li>Website development. </li></ul><ul><li>Command line scripting. </li></ul><ul><li>Writing desktop applications. </li></ul>Use of PHP
  4. 5. <ul><li>Linux. </li></ul><ul><li>Microsoft Windows. </li></ul><ul><li>Mac. </li></ul><ul><li>And many others. </li></ul>Operating Systems
  5. 6. <ul><li>Apache . </li></ul><ul><li>Microsoft Internet Information Server. </li></ul><ul><li>And many others. </li></ul>Webserver Support
  6. 7. <ul><li>Outputting XHTML and XML files. </li></ul><ul><li>Outputting images, pdf files, Flash movies, etc. </li></ul>Abilities of PHP
  7. 8. <ul><li>MySQL </li></ul><ul><li>MS-SQL </li></ul><ul><li>InterBase </li></ul><ul><li>Oracle </li></ul><ul><li>SQLite </li></ul><ul><li>PostgreSQL </li></ul><ul><li>And many others. </li></ul>Database Support
  8. 9. <ul><li>PHP supports Open Database Connection standard. </li></ul><ul><li>Easily connect to database supporting these standards. </li></ul>ODBC Support
  9. 10. <ul><li>String functions </li></ul><ul><li>Array functions </li></ul><ul><li>Date functions </li></ul><ul><li>Math functions </li></ul>Large Number of Built-In Functions
  10. 11. <ul><li>Joomla </li></ul><ul><li>Drupal </li></ul><ul><li>Coppermine Photo Gallery </li></ul><ul><li>Wordpress Blog </li></ul>Popular Open Source Applications
  11. 12. Popular Frameworks <ul><li>Cake PHP </li></ul><ul><li>Zend Framework </li></ul><ul><li>Symfony </li></ul><ul><li>CodeIgniter </li></ul>
  12. 13. <ul><li>www.yahoo.com </li></ul><ul><li>www.facebook.com </li></ul><ul><li>www.amazon.com </li></ul><ul><li>www.digg.com </li></ul><ul><li>www.wikipedia.org </li></ul>Popular Sites Using php
  13. 14. How To Use PHP
  14. 15. <ul><li>Download from http://www.php.net/downloads.php </li></ul><ul><li>Use XAMPP or WAMP which has Apache, MySQL and PHP in built. </li></ul>Installation
  15. 16. <ul><li>Scripting block starts with <?php and ends with ?> </li></ul><ul><li>Example </li></ul>Syntax
  16. 17. <ul><li>Use // for single line comment </li></ul><ul><li>/* */ to make large comment block. </li></ul><ul><li>Example </li></ul><ul><li><?php //This is a comment /* This is a comment block */ </li></ul><ul><li>?> </li></ul>Comments in PHP
  17. 18. <ul><li>Start with $ sign follwed by variable name. </li></ul><ul><li>Variable name starts with (_) underscore or letter. </li></ul><ul><li>Example : $name, $_name, etc </li></ul>Variables
  18. 19. Popular Sites to Learn PHP <ul><li>http://www.php.net/manual/ </li></ul><ul><li>http://www.tuxradar.com/practicalphp </li></ul><ul><li>http://www.homeandlearn.co.uk/php/php.html </li></ul>
  19. 20. <ul><li>http://www.wikipedia.org </li></ul><ul><li>PHP Manuals </li></ul>References

×