PHP Introduction



PHP4    Scalability, Introducing OOPS, Session Handling, Encryption, ISAPI support.
Drawback: Object treated as simple data type.

PHP5    Improved OOPS (Explicit Constructors and Destructors,
Object Cloning(object treated as reference), Class Abstraction,  
Variable Scope, Interfaces and a major improvement regarding How PHP handles Object Management).
Exception handling, improved XML and webservices support,
Native support for SQLite.


4P’s
Practicality No more header file calling, loosely type, Destroy variable as script
completes.
Power 1000’s of inbuilt function, third party extension ,
web services, PEAR, Adobe Flash, PDF, easy Credit card process solutions.
Possibility 25+database, SQLite, procedural and oops both.
Price Free and Open Source.


Learning

                                 



    




Introducing PHP
History
The origins of PHP date back to 1995 when an independent software development contractor named Rasmus Lerdorf developed a Perl/CGI script that enabled him to know how many visitors were reading  his online résumé. His script performed two tasks: logging visitor information, and displaying the count of visitors to the web page.
Two core developers, Zeev Suraski and Andi Gutmans, took the initiative to completely rethink the way PHP operated, culminating in a rewriting of the PHP parser, dubbed the Zend scripting engine. The result of this work was in the PHP 4 release.

PHP 4
In May, 2000, roughly 18 months after the new development effort was officially underway, PHP 4.0 was released.
Object-oriented support:
Native session-handling support:
Encryption:
ISAPI support: ISAPI support gave users the ability to use PHP in conjunction with Microsoft’s IIS Web server.
Native COM/DCOM support: Another bonus for Windows users is PHP 4’s ability to access and instantiate COM objects. This functionality opened up a wide range of interoperability with Windows applications.
Native Java support: In another boost to PHP’s interoperability, version 4 offered support for binding to Java objects from a PHP application.

PHP 5
Vastly improved object-oriented capabilities: Improvements to PHP’s object oriented architecture were version 5’s most visible feature. Version 5 included
numerous functional additions such as explicit constructors and destructors,
object cloning, class abstraction, variable scope, and interfaces, and a major
improvement regarding how PHP handles object management.
Try/catch exception handling:
Native support for SQLite:
String handling;

General Language Features

  • No header file needed                            
<?php
echo date("F j, Y");
?>
  • PHP is a loosely typed language
  • Focus on goal                                 

$randomString = substr(md5(microtime()), 0, 5);

  • Automatic garbage collection
POWER
  • PHP developers have almost 200 native libraries at their disposal, collectively containing well over 1,000 functions, in addition to thousands of third-party extensions.
  • Create and manipulate Adobe Flash and Portable Document Format (PDF) files.
  • Evaluate a password for guessability by comparing it to language dictionaries and easily broken patterns.
  • Communicate with a wide variety of protocols, including LDAP, IMAP, POP3,
NNTP, and DNS, among others.
  • Tightly integrate with a wide array of credit-card processing solutions.

Possibility
Do you prefer a language that embraces procedural programming? How about one that embracesthe object-oriented paradigm? PHP offers comprehensive support for both.
Price
Opensource: free to modify, redistribute, and integrate the software into other products.
Open development and auditing process: security holes and potential problems are rapidly found and fixed. This advantage was perhaps best summarized by open source advocate Eric S. Raymond, who wrote “Given enough eyeballs, all bugs are shallow.”
Participation is encouraged: Development teams are not limited to a particularorganization. Anyone who has the interest and the ability is free to join the project.
The absence of member restrictions greatly enhances the talent pool for a given
project, ultimately contributing to a higher-quality product.
Advantages
  • PHP language and database MySQL allows you to make our sites dynamic.
  • PHP can run on both UNIX and Windows servers, which makes it more accessible than Windows    (ASP).
  • PHP5 a fully object oriented language and its platform independence and speed on Linux server helps to build large and complex web applications.
  • PHP  allows integrating   web pages easily.
  • PHP is that the language interfaces very well with MySQL(open source), a popular type of online database.
  • PHP is that it is Open Source Code. The actual code that is PHP is available to the public for free, while the source code for products such as ASP is not. So PHP is very cheap.      
  • Because PHP is open source, there is a large community of PHP programmers that help each other with  code. This means PHP programmers can rely on each other by using reusable pieces of code called functions and classes rather than constantly reinventing the wheel. This can dramatically cut down on   production time.

Sampling of major websites that use PHP

Facebook Social networking http://www.facebook.com
Flickr Photograph sharing http://www.flickr.com
Wikipedia Online collaborative encyclopedia http://www.wikipedia.org
SugarCRM Customer relationship management tool http://www.sugarcrm.com
Dotproject Project management tool http://www.dotproject.org
Drupal Website construction template engine http://drupal.org
Interspire Newsletter and email marketing product http://www.interspire.com

Reactions: