PHP: An introduction to the programming lanaguage
PHP, which stands for PHP: Hypertext Preprocessor, is an open source HTML-embedded scripting language generally used for websites all over the internet. It's main purpose is to allow for the quick programming of interactive, dynamically generated web pages.
PHP 5 is the current version of the language with its main enhancements being in the areas of object-oriented programming. All versions of PHP newer than version 2 are currently supported and in use.
PHP code is generally embedded into an existing web page through the use of code delimiters in a similar manner as ASP, ASP.NET or Ruby. Unlike JavaScript, which runs within a browser, PHP code gets interpreted on the server, generating HTML that gets sent to the client browser to be rendered. One of the language's benefits is its ease of use for newer developers, while still retaining a robust list of advanced features for more experienced programmers to exploit.
While it is primarily used for web site programming, PHP can also be used as a command-line scripting language suitable for simple text processing tasks. It also can be used to develop desktop applications with a graphical interface using the PHP-GTK library extension, but this isn't the best use for PHP when compared to other languages designed for GUI development.
A major advantage of PHP is its neutrality towards operating systems and web server software. It works on all major operating system platforms, and supports most of the major web servers including Apache and Microsoft's IIS. Another main feature is PHP's ubiquitous database support which includes both large proprietary systems like Oracle and open source options like mySQL.
The success of PHP is an excellent statement about the quality of open source initiatives in a largely proprietary software development world.
Modern versions of PHP are object oriented just as modern versions of C/C++ are. In fact, PHPs relationship with the C programming language is so close now that it is possible for developers to write extensions in C to add additional functionality to the PHP language.
Related posts:
