30-01-2013, 01:56 PM
Introduction to PHP
PHP.ppt (Size: 450 KB / Downloads: 20)
PHP Hypertext Preprocessor.
Other Names : Personal Home Page, Professional Home Page
Is a server side scripting language.
Capable of generating the HTML pages
HTML generates the web page with the static text and images.
However the need evolved for dynamic web based application, mostly involving database usage.
Why PHP?
..there are no. of server side scripting available like ASP, SSJS, JSP…..
PHP involves
simplicity in scripting (..generally using the database)
platform independence.
PHP is
primarily designed for web applications
well optimized for the response times needed for web applications
Is an open source.
PHP Language features
PHP language features such as control structures, operators, variable types, function declaration, class/object declaration are almost similar to any compiled or interpreted language such as C or C++.
PHP Data Type
Three basic data types
Integer
Double
String
More data types
Array
Object
PHP is an untyped language
variables type can change on the fly.
Image Generation & Manipulation
PHP uses the GD library for the most of the image functionality that it offers.
GD library is used for generating the two-dimensional graphics.
PHP API’s provides us with functions to:
Create, delete, resize and modify images.
Draw basic geometric figures
Manipulate text and fonts
Manipulate colors
Interlace and manipulate pixels
Handle PostScript files