Skip to main content

Advantages of Using PHP

History of PHP

PHP (it originally was abbreviation of for Personal Home Page) was first written by Rasmus Lerdorf . These were Perl scripts to track users of his Web pages. On communication and suggestions from other people he rewrote it as a scripting language and added support for forms. As its popularity grew, a core group of developers created an API for it and turned it into PHP3. Presently we have version 5. (PHP5) and its growth is likely to continue.

Advantages of PHP

  • PHP will run on all platforms, including most UNIXs, Windows (95/98/NT/2000) and Macs. As this uses the same code base, all scripts will run identically on all the platforms.
  • PHP is similar to C. So anyone who has experience with a C-style language will easily learnd PHP. In C-style languages we can also include Javascript and Java. In fact, much of PHP’s functionality is provided by wrappers around the underlying system calls (such as fread() and strlen()) so C programmers will immediately feel at home.
  • PHP is extendible. This allows programmers two ways of extending PHP to do some special processing, either by writing an extension module and compiling it into the executable, or by creating an executable that can be loaded using PHP’s dynamic loading mechanism.
  • PHP currently will load into Apache, IIS, AOLServer, Roxen and THTTPD. Alternatively, it can be run as a CGI module.
  • Lots of database interfaces. PHP currently will work with MySQL, MS SQL, Oracle, Informix, PostgreSQL and many others. These are binary level interfaces, and ODBC is also provided for those situations where the database is not supported.
  • If a PHP user wants to interface to particular library, then it is easy to write an interface for it, and many have done so, and contributed to the main PHP source repository. So you can find modules for graphics routines, PDF files, Flash movies, Cybercash, calendars, XML, IMAP, POP and a host of others. If the library you need is not supported, you can either write one yourself, or employ your favourite programmer to do it.
  • PEAR. The PHP Extension and Add-on Repository. Similar to the CPAN network for Perl, although still in its infancy, the idea of PEAR is to provide a set of PHP scripts that would be installed by default with the PHP installation
  • Fast. PHP is normally used an Apache module and this makes it very fast. It is entirely written in C and is quite small, so loads and executes quickly with small memory footprint. PHP is Open Source. Therefore programmers are not dependent on a particular manufacturer to fix things that don’t work.

What are the main disadvantages of PHP?

A scripting language has advantages and disadvantages. PHP also has some disadvantages. Some are direct disadvantages and some are indirect regarding functionality. PHP’s main drawback is Error Handling. PHP has a very poor ability in this regard, but even this disadvantage can be over come using a feasible advantage solution.

Comments

Popular posts from this blog

How to Create Chat Bubbles in CSS

At first, you need to write the appropriate HTML markup. Refer to the examples below: INPUT HTML <div class="talk-bubble"> <div class="talktext"> <p>CSS Talk Bubble configured by classes. Defaults to square shape, no triangle. Height is auto-adjusting to the height of the text.</p> </div> </div> <div class="talk-bubble tri-right left-top"> <div class="talktext"> <p>This one adds a right triangle on the left, flush at the top by using .tri-right and .left-top to specify the location.</p> </div> </div> <div class="talk-bubble tri-right left-in"> <div class="talktext"> <p>This talk-bubble uses .left-in class to show a triangle on the left slightly indented. Still a blocky square.</p> </div> </div> <div class="talk-bubble tri-right round btm-left"> <div class="talktext"> <p>And now...

Hidden HTML And The Keywords They Love

Selecting keywords If you have a website that is not performing well it is possible that you have selected keywords or phrases that are too general. When you choose an all-encompassing keyword or phrase you have to understand there is significant competition for the same broad term. To set your website apart you may need to look into the possibility of become much more specific about describing your product in keyword phrasing. For instance if you sell sweatshirts, you may want to choose more specific phrasing than simply ‘sweatshirts’. You might improve your site rankings by using terms such as ‘sports theme sweatshirts’ or ‘sports theme apparel’ or even go so far as to name individual sports teams as part of you keyword options. By checking out the online competition you have a greater opportunity to see how you can set yourself apart and be unique in competitive online marketing. Keywords that your competition is targeting Did you know you can actually observe the keywords and ...

How to Deal With Computer Fatigue

What is fatigue? The medical community generally views fatigue as a source of mystery — a complex physical condition that afflicts millions of people worldwide. It is not quite on the same level as being tired, as most people can easily say that they are beyond tired by the time fatigue sets in. Fatigue sets the body into a state of near-total lethargy. When fatigue sets in, When fatigue sets in, the continuation of other physical activities is almost always nearly impossible. Further activity could result in muscle spasms and pain in various parts of the body. Lower back pain is one of the most common ailments suffered by people with fatigue. In some cases, a fatigued individual may experience somnolence due to fatigue, though excessive physical labor is not the only cause of somnolence. Is mental fatigue real? It is also possible for a person to experience a sort of mental fatigue that, in most respects, is not linked to the overexertion of the body. The mind is just like any othe...