PHP versus ASP: Worth the Argument?

PHP: The Overview

PHP stands for Hypertext Preprocessor. Reading the title alone can alert you to the fact that this is a server-side processing language that reveals itself in the form of HTML. The most common use of this is web forms. Data is sent from the client to the web server. Information is processed and returns results.

This versatile language is not restricted to web access in the least. PHP also can be used in command-line processing and also installed as an extension to your own operating system. This will cause the PHP files to open with the PHP executable.

The use of databases is one of PHP's strengths. MySQL, SQL, Microsoft Access, Oracle, and InterBase are just a few of the many possibilities to work with.

ASP: The Overview

ASP is short for Active Server Pages. This too is a server-side scripting language. Microsoft has incorporated this language into their servers for more dynamic built-in objects. These are known as Component Object Models (COM).

Although not restricted only to being run on an IIS (Internet Information Services) server, its only full functionality can come through IIS. This first came with Windows 2000 and the NT4 Option Pack. ASP was not restricted to IIS. PWS (Personal Web Server) also was able to interpret ASP code on Windows NT, 95, and 98. However, it was limited in its functionality.

Cost issues

Many people like to argue the cost of ASP versus PHP. I would agree that this can be a concern for some, but really is not a major concern. Most buy IIS for the Microsoft integration. This being the case, IIS is worth the extra money for those expenses.

PHP is free to the extent of the Apache Web Server. The Apache Software Foundation offers a rather secure—but best of all, free—web server. With this, PHP can be installed for free. The only true costs expended are the server to run it, and the time to install it.

Speed questions

Here is where the most arguing is spent for loyalists of both sides of the server-side scripting world. This has been a large debate since both languages came into existence. This is an area that I do believe is greatly significant.

When an Operating System (OS) delegates memory to applications, the application will usually give back the memory. Operating Systems do not ask for that memory back so long as the application is still in use. PHP has a unique way of using this memory usage to its advantage. PHP grabs a memory block and holds it. When it frees up, it is not returned, but held for whatever processing that might take place in the future. This can be edited in the configuration file.

ASP is a little slower due to its COM-based architecture. Because it is calling object models, the machine must load those. This is similar to a programming language referencing a control. The memory usage, however, is not all that different from a standard application.

Truly, the main distinguishing factor will always be the computer on which the web server is run. If the machines are not similar, the language on the faster machine will indeed be faster than the other no matter what the strengths of memory or processor usage.

Compatibility Thoughts

When referring to the "C" word, many questions are quickly raised. No two computers are the same and for this reason people want to be assured that what they have will operate with what they already have obtained.

I would say that PHP has the ball in this category. Its winning card is Open Source. This means that PHP has a potential of unlimited developers behind it, greater resources, and a larger library of documentation. Due to all of these factors, much more is developed in addition and more is able to be learned by the programmer.

ASP is commonly thought to only run on IIS. As I mentioned earlier, this is not exactly the case. ASP can, in fact, run on Apache. Apache ASP is a port that enables limited ASP functionality on any Apache web server. The only requirement is mod_perl being enabled.

Always remember that PHP can run on any platform. Mac OS X, Windows, Linux, and Solaris all are among its possible Operating Systems.

Security Considerations

Anything can be hacked, no matter how strong the security. The only thing lacking is the time and the resources of how to do it.

Apache's security options make it more secure than Windows Server Operating Systems. IIS is known for many security holes and constant patching. However, I will not be one to say that Apache is security foolproof.

Programming Heritage

ASP has its roots in Microsoft's most commonly known language, Visual Basic. For this reason, it is very simple to learn and incorporate. PHP has more of a C++ language base. I believe that this also contributes to its speed abilities.

ASP's Common Misconception

ASP.NET and ASP are not the same. ASP.NET is a complete rewrite of the ASP programming language and, for this reason, most of it is not backwards compatible. .NET was written to fit more into the newer Microsoft architecture.

Conclusions

Personally, I would say that PHP is faster, easier, more compatible, more secure, and even cheaper to work with. This is not to say that ASP will never be part of my projects. I just prefer to use PHP because of its abilities over ASP; but it's not really worth arguing over. Just use what is most compatible with what you have, and fits what you desire most.



About the Author

Paul Avery

www.peejstudio.com

Comments

  • Hvis man mister sine følelser, han eller hun synes acceptable Beats by Dr. Dre hovedtelefoner

    Posted by wanzixiao on 06/04/2013 07:39pm

    [url=http://www.beatsbydrdredanmark.webstarts.com/]beats by dre danmark[/url] If you don’t abuse your headphones, this shouldn’t be a problem. However, it’s worth noting since the headphone line after which these are styled—the Beats by Dr. Dre—doesn’t suffer from this issue. Simply put, the comparisons of the Beats line with the Zoro are only skin deep—they don’t sound similar and they aren’t built for the same type of usage.Despite the minor distortion at top volumes and the delicate nature of the drivers, the Noontec Zoro is a pretty solid audio performer at normal listening levels. The detachable cable adds a bit of value to the purchase, even if doesn’t feature an inline remote. [url=http://www.nyebeatsbydrdre.350.com/]Nye beats by dr dre[/url] One caveat: The Zoro does not hold up well to repeated high volume usage on deep bass tracks that cause distortion. As with many pairs in the $100-range, this eventually seems to lead to some permanent driver damage. It doesn’t mean the headphones will be unusable, but they might suffer from a bit of rattling or fuzziness on certain frequencies, regardless of the volume—at the end of our testing, a third deep bass, high volume test ended up doing some damage to the right ear’s drivers. [url=http://www.kbhretelefonerbillig.webstarts.com/]beats høretelefoner[/url] Den særlige er bedre end headset er ideelle til ipods på markedet, Apple iPhones og bærbare forskellige modeller af iPods. Disse mennesker giver den komplette lyd du rigtig skal lytte til. Opholder drevne øretelefoner derudover du erhverver øget volumen. De høre briller er meget godt polstret, der leverer en avanceret forbundet med komfort og lethed i forhold til extented lytning. Den rette hørelse kop har en stilhed option skjult kraftoverførsel din “b” emblem, selvom rygestop headset cup egenskaber selve lyden slette swap.

    Reply
  • Nike Air Max 1 FB liberating, have a piquant color grain, the brand-new shoes

    Posted by Geozyoceada on 04/25/2013 08:38am

    In the summer in a tumbler guts the serene sprite seems to be a godlike creme de la creme, but if the sprite "feet"? Longing also give you a frisk, bring a invigorating! This summer, Nike and Sprite [url=http://markwarren.org.uk/property-waet.cfm]air max 90[/url] and his sneakers to a graduate of outstanding example snow spread of unripened, drained and dejected color system in the time-honoured Nike Superciliousness Max 1 shoes let slip a food chill scent.[url=http://fossilsdirect.co.uk/glossarey.cfm]nike huarache free[/url] Summer is the time to pick a clean shoe, shoes should be a creditable choice. Qualifying series Nike Publicize Max HomeTurf borough recently at the end of the day comes up, this series in the masterpiece Melody Max shoes to London, Paris and Milan the three paid tribute to the iconic metropolis of Europe, combined with the characteristics of the three cities, Air Max 1 HYP,Make public Max 90 HYP,Air Max 1 and shoes such as Make public Max 95, combined [url=http://markwarren.org.uk/property-waet.cfm]nike air max 90[/url] with the Hyperfuse, as kind-heartedly as a variety of materials, such as suede, Whether you after functional or retro-everything.

    Reply
  • Клиника Илая - инновационный медицинский центр

    Posted by HeepsyMed on 04/21/2013 07:15pm

    http://www.kava-time.com.ua/kiev/klinika-ilaya-innovatsionniy-meditsinskiy-tsentr.html Новейшие методики лечения ilaya - упрощение и удешевление сложных операций Ультрасовременный эндоскоп PENTAX (Япония) экспертного класса имеет уникальную мочь ранней диагностики новообразований желудочно-кишечного тракта с помощью программы «i-scan» (виртуальная хромоэндоскопии) без введения контрастного вещества (1-й аппарат в СНГ). Трескать возможность одновременного с диагностикой выполнения эндоскопических операций. Диагностика и лечение почечно-каменной болезни биполярным резектоскопом Richard Wolf (Германия) и лазерной установкой Lumenis (США) позволяет фрагментировать утес с любой локализации (почка, мочеточник, мочевой пузырь и мочеиспускательный канал) и восстановить уродинамику за нераздельно визит. В ilaya возможно устройство эндоскопических операций по лечению доброкачественной гиперплазии предстательной железы (аденома), включая ТУРП (Трансуретральная резекция простаты) и лазерную энуклеацию простаты с помощью Lumenis (США). Мы перевели тяжелые хирургические операции в величина «Хирургии одного дня».

    Reply
  • cheap snapbacks online

    Posted by xxds2py on 04/01/2013 05:59am

    [url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap z nrqd [url=http://cheapsnapbacksforsalezone.webs.com]cheap snapbacks online[/url] cheap snapbacks online f hxwo[url=http://cheapsnapbacksforsalezone.webs.com]cheap snapbacks free shipping[/url] cheap snapbacks free shipping j yyku[url=http://wholesalefittedhat.webs.com]snapback wholesale[/url] snapback wholesale u kctj[url=http://wholesalefittedhat.webs.com]snapback wholesale[/url] snapback wholesale d clrw[url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap p duqm [url=http://snapbackswholesalezone.webs.com]hats wholesale[/url] hats wholesale a iyhf [url=http://cheapsnapbacksforsalezone.webs.com]cheap snapbacks online[/url] cheap snapbacks online n wqga[url=http://goodsnapbackhatscheap.webs.com]cheap snapbacks[/url] cheap snapbacks l wocp[url=http://wholesalefittedhat.webs.com]snapback wholesale[/url] snapback wholesale k quoj[url=http://cheaphatsmall.webs.com]cheap hats[/url] cheap hats o opbu[url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap m iygb [url=http://snapbackhatwholesale.webs.com]wholesale snapbacks[/url] wholesale snapbacks e bmmu [url=http://wholesalefittedhat.webs.com]wholesale fitted hats[/url] wholesale fitted hats h zqhw[url=http://cheaphatsmall.webs.com]cheap snapback hats[/url] cheap snapback hats a bwdy[url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap a qmyy[url=http://cheaphatsmall.webs.com]cheap snapback hats[/url] cheap snapback hats y njpa[url=http://bestbaseballcap.webs.com]hats wholesale[/url] hats wholesale j riiv

    Reply
  • hats wholesale

    Posted by xxds9sk on 04/01/2013 05:58am

    [url=http://cheapsnapbackshat.webs.com]cheap snapbacks online[/url] cheap snapbacks online j brqb [url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap u ycdn[url=http://cheapsnapbackshat.webs.com]cheap snapbacks hats[/url] cheap snapbacks hats b mvxw[url=http://snapbackswholesalezone.webs.com]snapback hats wholesale[/url] snapback hats wholesale y kcdf[url=http://cheaphatsmall.webs.com]snapback hats cheap[/url] snapback hats cheap x jcbd[url=http://cheaphatsmall.webs.com]snapbacks for cheap[/url] snapbacks for cheap l tdjd [url=http://snapbackswholesalezone.webs.com]fitted hats wholesale[/url] fitted hats wholesale p swjg [url=http://goodsnapbackhatscheap.webs.com]cheap snapbacks[/url] cheap snapbacks i nkbc[url=http://cheapsnapbacksforsalezone.webs.com]snapback hats cheap[/url] snapback hats cheap c vxxv[url=http://goodsnapbackhatscheap.webs.com]cheap snapbacks free shipping[/url] cheap snapbacks free shipping p fdaq[url=http://cheapsnapbacksforsalezone.webs.com]cheap snapbacks free shipping[/url] cheap snapbacks free shipping g xksh[url=http://snapbackswholesalezone.webs.com]snapback hats wholesale[/url] snapback hats wholesale u reux [url=http://bestbaseballcap.webs.com]wholesale hats[/url] wholesale hats x giea [url=http://snapbackswholesalezone.webs.com]hats wholesale[/url] hats wholesale i evre[url=http://cheapsnapbacksforsalezone.webs.com]snapback hats cheap[/url] snapback hats cheap a iama[url=http://cheaphatsmall.webs.com]snapbacks for cheap[/url] snapbacks for cheap l svjy[url=http://snapbackhatwholesale.webs.com]snapback hats wholesale[/url] snapback hats wholesale q loyz[url=http://wholesalefittedhat.webs.com]snapback wholesale[/url] snapback wholesale r frkl

    Reply
  • dead tired trite missing ugg boots sales marathon

    Posted by Bensonvhv on 10/28/2012 07:40pm

    everythingnfl jersey supplyhappensnfl jersey chinacheatedugg vendita onlinememoryuggs uk onlinewrongcheap uggeverythinguggs boots uksweetcheap uggs ukwould

    Reply
  • ashnah php interpreter

    Posted by ashrafull on 01/06/2007 08:51pm

    I like php , mysql etc. I have developed a ashnah php interpreter. this can interpret simple php programme. it has built in database, xml, regexpression. you do not have to install mysql to use it. for basic staff it simulate sql database. sound crazy, please have a look and make comment.

    Reply
  • PHP is a gem

    Posted by steveheflin on 11/08/2006 02:55pm

    Although ASP(.NET) doesn't compare with the power and momentum that PHP has, this article points the reader to PHP and hopefully gets the ASP reader to take a look at PHP.

    Reply
  • ASP is obsolete, ASP.NET does not compare...

    Posted by tornblad on 11/08/2006 04:05am

    ASP.NET renders ASP completely obsolete, which is why this article is of no value. Also, pure out-of-the-box ASP.NET is more powerful than anything you could imagine cooking up with pure out-of-the-box PHP. There is complete support for security, authorization, authentication, auditing, localization, modularization... There are standard web user controls that you would have to write from scratch in PHP... You have the ability to apply themes and skins in a easy and standardized fashion without writing a single line of C# or VB.NET code. A more fair comparison would be PHP to Ruby on Rails, or Ruby on Rails to ASP.NET...

    Reply
  • Why not a compare PHP with Ruby on Rails?

    Posted by dotnetCarpenter on 11/06/2006 07:34am

    It's not that your arguments is not valid but it strikes me as rather odd to compare a vivid framework like PHP with a framework which latest edition is 6 years old. I would be obvious to compare PHP and Ruby on Rails. You're wrong in the Programming Heritage part. ASP is a framework not a language. You can write ASP pages in JScript, Perl and so on.

    • dotash framework

      Posted by ashrafull on 01/06/2007 08:56pm

      I am working on a project to develop a new platform for small office and personal pages. ashnah dotash platformhas following ashnah php interpreter ashnah cpp interpreter ashsql sql server ashnah webserver, ashnah email, ftp,dns server it is a mini php,apcache and mysql combined like xampp. but only one programme for all. please have a look at my ashnah site and make comments

      Reply
    • Still valid.

      Posted by PeejAvery on 11/06/2006 02:00pm

      Even though ASP itself is older, it is still used. Also, I left my points rather open so that it is pretty much still true for ASP.NET as well. Concerning the Programming Heritage, I am not wrong. I said nothing about it being a language. I stated that it has roots in a language.

      Reply
    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • The exponential growth of data, along with virtualization, is bringing a disruptive level of complexity to your IT infrastructure. Having multiple point solutions for data protection is not the answer, as it adds to the chaos and impedes on your ability to deliver consistent SLAs. Read this white paper to learn how a more holistic view of the infrastructure can help you to unify the data protection schemas by properly evaluating your business needs in order to gain a thorough understanding of the applications …

  • Instead of only managing projects organizations do need to manage value! "Doing the right things" and "doing things right" are the essential ingredients for successful software and systems delivery. Unfortunately, with distributed delivery spanning multiple disciplines, geographies and time zones, many organizations struggle with teams working in silos, broken lines of communication, lack of collaboration, inadequate traceability, and poor project visibility. This often results in organizations "doing the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds