PHP Tutorial / PDF










Table of Contents:




What is PHP?
Language Syntax
Embedding PHP Code .
Dynamic vs. Static Web pages
Variables
Strings
Arrays 
Conditionals and Looping Constructs
Array Traverse Constructs: 
Operators  
Functions  
File System Functions: 
Web Application Features
Working With Cookies
Built-in Variables 
PHP internal variables
CGI / Web server provided variables
HTTP Request Variables 
Regular Expressions . 
Regular Expression Functions in PHP .  
Database Handling 
Communication with MySQL
MySQL Example 
Communication with Other Databases


--------------------------------------




Sample of the pdf document :









What is PHP?

PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general-purpose

scripting language that is especially suited for Web development and can be embedded into HTML.

How PHP came into being :

PHP started as a quick Perl hack written by Rasmus Lerdorf in late 1994. Over the next two to three years, it
evolved into what we today know as PHP/FI 2.0. PHP/FI started to get a lot of users, but things didn't start
flying until Zeev Suraski and Andi Gutmans suddenly came along with a new parser in the summer of 1997,
leading to PHP 3.0. PHP 3.0 defined the syntax and semantics used in both versions 3 and 4.

Why yet another language?

People often ask "why invent yet another language; don't we have enough of them out there"? It is simply a
matter of "the right tool for the right job". Many Web developers found that existing tools and languages were
not ideal for the specific task of embedding code in markup. Those developers collaborated to develop a
server-side scripting language which they felt would be ideal for developing dynamic Web-based sites and
applications.

PHP was created with these particular needs in mind. Moreover, PHP code was developed for embedment
within HTML. In doing so, it was hoped that benefits such as quicker response time, improved security, and
transparency to the end user would be achieved. PHP has evolved into a language, or maybe even an
environment, that has a very specific range of tasks in mind. For this, PHP is, in Stig's humble opinion, pretty
close to the ideal tool.....










 Click here for  Download PDF / FREE





0 commentaires: