OUR MUST POPULAR POST

Wednesday, March 27, 2013

PHP/MySQL Tutorial


Introduction to Database :

Goal of this tutorial

  1. Not to teach everything about PHP,
  2. but provide the basic knowledge
  3. Explain code of examplesProvide some useful references

    What is PHP?

    • PHP == Hypertext Preprocessor
    • Open-source, server-side scripting language
    • Used to generate dynamic web-pages
    • PHP scripts reside between reserved PHP tags
    • This allows the programmer to embed PHP scripts within HTML pages
     

 What is PHP (cont’d)

  • Interpreted language, scripts are parsed at run-time rather than compiled beforehand
  • Executed on the server-side
  • Source-code not visible by client
  • View Source in browsers does not display the PHP code
  • Various built-in functions allow for fast development
  • Compatible with many popular databases 
  • What does PHP code look like?
    • Structurally similar to C/C++
    • Supports procedural and object-oriented paradigm (to some degree)
    • All PHP statements end with a semi-colon
    • Each PHP script must be enclosed in the reserved PHP tag
    •  
    •  
    • <?php

        
      ?>

      Comments in PHP

      •         Standard C, C++, and shell comment symbols
      •  
      •     // C++ and Java-style comment
             # Shell-style comments
             /* C-style comments
             These can span multiple lines */


         
       
       

 

No comments:

Post a Comment

Thanks for comment me