PHP is a server-side scripting language for creating dynamic Web pages. You create pages with PHP and HTML. When a visitor opens the page, the server processes the PHP commands and then sends the results to the visitor’s browser, just as with ASP or. Unlike ASP or ColdFusion, however,
PHP is Open Source and cross-platform. PHP runs on Windows NT and many Unix versions, and it can be built as an Apache module and as a binary that can run as a CGI. When built as an Apache module, PHP is especially lightweight and speedy. Without any process creation overhead, it can return results quickly, but it doesn’t require the tuning of mod_perl to keep your server’s memory image small. In addition to manipulating the content of your pages, PHP can also send HTTP headers. You can set cookies, manage authentication, and redirect users. It offers excellent connectivity to many databases (and ODBC), and integration with various external libraries that let you do everything from generating PDF documents to parsing XML.
PHP goes right into your Web pages, so there’s no need for a special development environment or IDE. You start a block of with . (You can also configure PHP to use ASP-style <% %> tags or even .) The PHP engine processes everything between those tags. PHP’s language syntax is similar to C’s and. You don’t have to declare variables before you use them, and it’s easy to create arrays and hashes (associative arrays). PHP even has some rudimentary object-oriented features, providing a helpful way to organize and encapsulate your code. Although PHP runs fastest embedded in Apache, there are instructions on the PHP Web site for seamless setup with Microsoft IIS and Netscape Enterprise Server. PHP has many open-source libraries included with the core build, and many more are readily available. Extensions exist to help PHP interface with a number of systems.
No doubt much of its popularity is due to its relative ease to learn, and its notorious looseness. Arrays and variables in PHP are able to hold any type of object, variables need not be declared, and the syntax is remarkably simple. Unlike many languages, such as C# or Perl, which have primarily a following of more generalist programmers, many PHP programmers know no other language. This occasionally causes it to be dismissed as a lesser language, but its growing popularity and the many robust and efficient sites built using it as a structure seem to dispel this myth. PHP has occasionally been criticized for what are viewed by some as flaws, in comparison to languages such as ASP. A lack of easily understandable error messages, a sometimes overly robust configuration file, and an obviously incomplete set of built-in functions are also pointed to as areas which could use marked improvement. Development continues apace, however, and with each successive build, PHP appears to address more and more of the concerns raised by its open-source community. For more information you can mail us at mail~at~softwaredevelopmentcompany.co.in.