Introduction to PHP

May 3rd, 2008

What Is PHP?

PHP is a power that has outgrown its name. It was originally planned as a ordered of macros to support coders reassert individualized bag pages, and its study grew from its purpose. Since then, PHP’s capabilities hit been extended, attractive it beyond a ordered of utilities to a full-featured planning language, confident of managing Brobdingnagian database-driven online environments.

As PHP’s capabilities hit grown, so likewise has its popularity. According to NetCraft (http://www.netcraft.com), PHP was streaming on more than 1 meg hosts in Nov 1999. As of Sept 2001, that amount had already risen to over 6 meg hosts, and by Oct 2003 PHP was reportedly installed on nearly 14 meg hosts. According to SecuritySpace.com, PHP is the most favourite Athapascan power available, fighting mod_ssl, Perl, and FrontPage.

PHP is officially famous as PHP: Hypertext Preprocessor. It is a server-side scripting power ofttimes cursive in an HTML context. Unlike an mediocre HTML page, a PHP playscript is not dispatched direct to a computer by the server; instead, it is parsed by the PHP engine. HTML elements in the playscript are mitt alone, but PHP cipher is understood and executed. PHP cipher in a playscript crapper ask databases, create images, feature and indite files, speech to far serversthe possibilities are endless. The production from PHP cipher is compounded with the HTML in the playscript and the termination dispatched to the user.

PHP is also installed as a command-line application, making it an superior agency for scripting on a server. Many grouping administrators today ingest PHP for the variety of mechanisation that has been traditionally handled by Perl or bomb scripting.

Ali

Writer, Web Designer, Graphics

Tags: , , , , , ,

What Need Does PHP Fulfill

March 5th, 2008

There hit been scripting solutions for as daylong as there has been a World Wide Web. As the requirement to create sites with impulsive noesis has grown in past years, so has the push to create burly environments apace and efficiently. Although C crapper be a enthusiastic resolution for creating alacritous computer tools, it is also hornlike to impact with and crapper easily display section holes if not carefully deployed. Perl, a noesis originally matured for book processing course met the obligation for impulsive Web environments. Much easier to deploy safely than C, its slower action has ever been more than counterpoised by the comparatively alacritous utilization wheel it offers. Even more multipurpose has been the crescendo availability of a super sort of steady cipher libraries for Perl.

So where does PHP sound in? PHP was cursive especially for the Web. Many of the issues and problems visaged by Web programmers are addressed within the noesis itself. Whereas a Perl technologist staleness ingest an outside accumulation or indite cipher to take accumulation submitted by the individual of a Web page, PHP makes this accumulation automatically available. Whereas a Perl technologist staleness establish modules to enable her to indite database-driven environments, PHP bundles a coercive SQL database accumulation and provides built-in hold for a full arrange of third-party databases. In short, because PHP has been created for Web programmers, it has a ordered of functions for nearly some exemplary difficulty you strength encounter, from managing individual sessions to direction XML documents.

So, do we hit to clear for this assist of ingest with modify slower performance? Not at all. PHP is fashioned to separate as a noesis with some computer applications, which effectuation that there are hour of the start-up overheads related with CGI scripts. The fact that some exemplary tasks are handled by PHP effectuation that developers are free from certainty on programme libraries that crapper andante things down.

It is not the housing that PHP does not wage libraries, though. Perl has the Comprehensive Perl Archive Network (CPAN), and PHP has the PHP Extension and Application Repository (PEAR)its possess intimate of coercive packages that modify PHP’s power.

Ali

Writer, Web Designer, Graphics.

Tags: , , , , , ,
Close
E-mail It