Featured post

Why should I learn Go?

Image
What is unique about GO language? Here are some of the advantages of GO programming language:           Code runs fast           Garbage collection           Simpler objects           Efficient concurrency Code runs faster: Before understanding why GO runs faster, let us know the process of software translation. Basically, we have three broad categories of languages:             Machine level language ·        Machine level language is a low-level language where instructions are directly executed on the CPU. Machine level instructions are small steps which are straight forward and simple (Ex: ADD, SUBTRACT, MULTIPLY ) Assembly language ·        Assembly language is similar to machine level language but a bit more specific for humans to understand. For example, 1000...

Why PHP is called Hypertext Preprocessor



We know that websites like FACEBOOK are built using PHP which is called “HYPERTEXT PREPROCESSOR”. But why is it called so?




PHP is called hypertext pre-processor because PHP libraries are already compiled and processed. When a user (client) requests any PHP page in browser address bar, that request first goes to the server .For instance, say Apache is running on that server then that server interprets the requested PHP files and return the response in form of HTML (Which is the hypertext). This is the reason why PHP is called hypertext pre-processor.




Advantages of PHP:

PHP is a server-side, cross-platform, HTML-embedded scripting language. Currently there are over half a million domains running PHP and it is freely available for download online from www.php.net. Much of PHP’s syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. 

The goal of the language is to allow web developers to write dynamically generated pages quickly and easily. PHP eliminates the need for numerous small CGI programs by allowing you to place simple scripts directly in your HTML files. It also makes it easier to manage large web sites by placing all components of a web page in a single html file.




For example, if you are creating an online catalogue, you will most likely have a design template for all related catalogue pages. Traditionally, this design is generated by hand in HTML and different data is presented within the template design. With PHP, one application can be used to generate all the pages required to display items from a database in the proper pages, in the right locations, and with the appropriate related content. This eliminates redundant page generation, simplifying maintenance. PHP also reduces the site down to a handful of template pages, with scripts that generate the rest of the site.
PHP is an excellent alternative to such similar programming solutions as Microsoft's proprietary scripting engine ASP and Allaire's rather expensive ColdFusion. As mentioned before, PHP is a cross-platform language. This doesn't stop with the core PHP code but can be extended to all of PHP's libraries and all code written in PHP. Neither ASP nor ColdFusion can make this claim.
 PHP has a large feature set which includes built-in support for numerous databases (including Access, LDAP, Oracle, and MSSQL), networking support, zip archiving ,and an excellent set of built-in functions. Furthermore, due in part to it being open source and freely available for download on the web, the language enjoys an active developing environment. Since the syntax structure borrows heavily from C, it is easy for even the novice programmer to learn the language. PHP is also the oldest HTML-embedded scripting language, giving it a head start on all the others.
If you are a content developer, you probably want to learn PHP scripting by heart. But, it is nice to know how PHP can help you create more powerful web applications and user-friendly designs.


Popular posts from this blog

Introduction to Big Data and Hadoop

LocationManager vs GoogleApiClient

Why should I learn Go?