PHP

PHP

PHP is one of the simplest server-side languages out there, and it designed primarily for web development. Learning this language is good not only because it adds one more language to your toolbelt, but also because there is a large number of sites currently built with WordPress, a content management system (CMS) built with it.

PHP development began in 1995 when Rasmus Lerdorf wrote several Common Gateway Interface (CGI) programs in C, which he used to maintain his personal homepage. He extended them to work with web forms and to communicate with databases, and called this implementation “Personal Home Page/Forms Interpreter”.

  • “PHP: Hypertext Preprocessor”.
  • It is a server side scripting language that embedded in HTML. It use to manage dynamic content, databases, session tracking, even build entire e-commerce sites.
  • It is integrated with a number of popular databases, including MySQL, PostgreSQL, Oracle, Sybase, Informix, and Microsoft SQL Server.
  • PHP is pleasingly zippy in its execution, especially when compiled as an Apache module on the Unix side. The MySQL server, once started, executes even very complex queries with huge result sets in record-setting time.
  • Supports a large number of major protocols such as POP3, IMAP, and LDAP. PHP 4 added support for Java and distributed object architectures (COM and CORBA), making n-tier development a possibility for the first time.
  • Language tries to be as forgiving as possible.

What is a File?

  • Files can contain text, HTML, CSS, JavaScript, and PHP code
  • Code executed on the server, and the result returned to the browser as plain HTML
  • Files have extension “.php”

What Can It Do?

  • Generate dynamic page content
  • Create, open, read, write, delete, and close files on the server
  • Collect form data
  • Send and receive cookies
  • Add, delete, modify data in your database
  • Use to control user-access
  • Encrypt data

Why This Language?

  • Runs on various platforms (Windows, Linux, Unix, Mac OS X, etc)
  • Compatible with almost all servers used today (Apache, IIS, etc)
  • Supports a wide range of databases
  • Is free. Download it from the official resource: www.php.net
  • Is easy to learn and runs efficiently on the server side.