Friday, 3 June 2011

PHP Introduction


PHP:-personnel home page.
PHP:-hypertext pre processor (reverse acronym).
                                        
1) Introduction:-
a) php is a server side scripting language.
b) php is a html embedded scripting language.
c) php is a alternative of asp.
d) php is a open source.
e) php is a oop language.
f) php strongly support nearly 32 databases.
g) php is a platform independent langauge.
h) php runs on different webservers like(apache,iis..)
 i)php follows the core syntax of c,perl. So is to learn.
j)php is a interpreter based.
k) php is also structure language.
l) php eliminates the variable type declaration.

2) History
a) Father of php is RASMUS LERDORFF.
b) Released in 1994.
           
3) php supported tags
            <SCRIPT LANGUAGE="PHP">
<%  %> asp style script
<?= ?>,<? ?>//before 4.0 version
<?php ?>//5.0 onwards.

4) File extensions?
.php,.phps,.phtml...
And also php supports u r own extensions. Ex:-.apparao like this
5) MYSQL
ans)1.it is RDBMS.
      2.good feature in mysql is TABLE TYPES.(first time introduced).
      3. mysql also open source.
      4.it was developed in 1978.
      5. MONTY WEDINIOUS.(author of mysql)
      6.php parsers was developed by Andi gutmen, Jan suraski (ijrail country)

6) Generally we are using http protocol to run php.
       bcoz:-it is fast when compared to other protocols.
       but it maintain low-level seculrity.(php rectify this problem)
       but php maintain the security.so fast and security.
       So http protocol is popular to compare with other protocols in php environment.

7) Why php is a structured language?
ans) 1)php have the start and end tags like main c.
        2)how to interact with interfaces?
            interact with console,browser.
        3) Persisting the data with variables,arrays,structures   
        4)it supports control flow statements.
        5)it supports reusable modules(function)
        6)it supports native handling resources(files)
        If any languages follow these rules definitely we will call as structured language

8)why php is oop language? 
       a)it supports the oop concepts(like class,object, abstraction,inheritance,polimarphism...)
       b)it supports the exception handling.

9)versions of php:-
        php 3,php 4.
        php 5.x(5.2.1,....5.2.6)//companies used
        php beta(may be 6) version released in january 2008.
10)version of mysql:-
        mysql 5.x
11) versions of apache server.
        apache 1.0,apache 2.x (latest).

No comments:

Post a Comment

Visual comparison of the two methods, creating a simple table.

Option 1, using PHP: // PHP $html = '<table>' ;     foreach ( $data as $row ) {     $html .= '<tr>...