Thursday, July 3, 2008

PHP-1(INTRODUCTION)

What is PHP?
PHP: Hypertext Preprocessor
server-side HTML-embedded scripting language
all functions/commands are enclosed by start ()
start and end tags can be different.

database support :-
1-dBase
2-mSQL
3-MySQL
4-Oracle
5-PostgreSQL (*)
6-dbm

Syntax :-
function calls have flexible syntax
statements are terminated by a semicolon (;) or a PHP end tag (?>)
supports C, C++, and Bourne Shell comments

Types :-
A-PHP supports: -
1-integer
2-floating-point numbers
3-string
4-object
5-array
6-act like both hash tables (associative arrays) and indexed arrays (vectors)
7-multi-dimensional arrays
8-make with: array()
9-sort with: asort(), arsort(), ksort(), rsort(), sort(), uasort(), usort(), and uksort()
count the number of items with: count()

B-no explicit type declaration (determined by context)
C-casts (see Sec 2, Ch 6, Type Juggling)

Dynamic Pages:-
Includes/Requires
1-headers
2-footers
3-embedded docs / tables
4-remote files
5-requires and loops
6-requires and conditionals

HTML Forms:-
A-referencing
B-saving

Databases:-
1-connecting
2-simple queries
3-displaying data in tables
4-complex queries (regex, binary, exact ...)
5-adding rows

No comments: