Technology for Startups – PHP or .Net?

July 15, 2007
By Sri...

[Sri is the founder of Yulop and in this post, he shares tech tips for startups and delves into the basic parameters, startups should look at before deciding on the technology]


Well, when i started to use CGI scripting, it was PERL and ASP that ruled the tech world. On the contrary, PHP an open source revolution was just starting; and now after the release of 5th version, every web developer should understand what’s in PHP and why it can potentially replace ASP.net or the upcoming RoR.

I have worked on ASP.net but my rationale behind choosing PHP was only the fact that it’s open source and the cost of hosting and cost of developing is very minimal!
History of PHP can be found in here
Performance Factor!
If your product uses ASP.net and SQL server as a DB, it has to be hosted on a IIS web server. If a space is shared with IIS server, you will always repent for all the SQL or unhelpful “service unavailable” messages you get which are traits of MS version of IIS. The technology doesn’t suit large scale hosting and is quite clearly unacceptable, if you hope to get major traffic to your site.
[ex: Orkut is coded using ASP.net and is hosted on IIS, you must be very familiar with unhelpful pages i am refering to]

When compared to PHP hosted on Apache with a respectful MYSQL, you could substantially be more reliable and need not worry about any breakpoints.

Hosting Ghost!
When you have to host a windows based system to support IIS and ASP.net programming, its way too expensive and literally not affordable for small scale business need.

On the other hand, switching to Linux based systems with PHP, you are a clear winner. It costs nearly 60% more to host on Windows compare to Linux systems.

I understand Linux experts are few and its easy to maintain a windows box with many MS certified engineers flocking around. It’s always challenging to have your linux box
always up and running, but when you look for a cost/benefit analysis, its always LINUX and PHP which are best to combat all my woes.

IIS : No SEO !
When you have a portal hosted on IIS, you would witness the most ugliest URLs and very unfriendly environment for a SEO.Probably MS didn’t had a forethoughts of a growing need for search engine optimization.

IIS isn’t SEO friendly and APACHE with its mod_rewrite command could let you easily play with .htaccess to bring effective ways of controlling search engine features.

Coding Column
ASP.net is robust AND secure with all its consistent framework and the connectivity to DB too is brilliantly implemented, and at the same time PHP is very inconsistent and doesn’t follow any best pratice (from a programming sense).

At the same time PHP is a programmer’s delight – type a PHP program on a simple text editor and run under your apache, you would see the interpreter replying back to you [very light weight], its all so easy when compare to installing, licensing, publishing , waiting for IIS to reply back along with those heavy frameworks to control the objects from a browser [what the heck]!!

PHP is so very simple to control and very easy for a novice programmer to start coding, it follows very good CGI scripting binaries of C programming language and with its Out-of-box coding standards it would very support huge traffic and further enhanced with every version.

Databases and woes!
Myself being an avid lover of MSSQL and with all its feature built resources such as Enterprise manager, Query Analyzer, I wouldn’t anytime compare with less privileged MYSQL.

MYSQL might look very easy for a starter, but it simply rejects complex queries only due to its arbitrary limits and moreover, the unsupported UI makes it more complex for SQL to be scripted.
Never mind all new SQL editors like SQLyog gives a supporting edge and with MYSQL on a enterprise user level, its getting better every day!

Conclusion:
The above expressed views are based only with my experience in working with ASP.net and PHP mode, I would anytime suggest for a migration to LINUX,APACHE,MYSQL,PHP [LAMP].

Tags:

               About the author - Bit more social, but very adaptable for any technology which believes in Open Source Concepts! Dream of building a product Company in INDIA
  • Trix
    you are trying to build a business ,mind you. you think saving Rs 15000 by not using asp.net mssql and visual studio is a business advantage?
    asp.net has an amazing ecosystem with so many other firms providing different kinds of asp.net controls.
    asp.net web hosting is cheap at 5$ a month and u have so much of choice.
  • Anonymous
    For Mobile Web Applications - Using .NET will be BEST as you need not code for WML, HTML, XHTML (and cHTML etc..) separately. The .Net framework takes care of it based on the request headers it receives from the clients.
    If you were to code the same web app in PHP, you would need to read the headers and have separate codes for generating the above mentioned formats.. which is very tedious and gives rise to issues like maintainance across the formats.
    Further, the time required to build such an app is considerably low using .net thru Visual Studio.

    So, for Mobile Web applications, .Net is a clear winner!!

    Any comments are most welcome..
  • Vicky
    I can't find anything special in Ruby Language it's a child of Python. as PHP is child of PERL.

    ROR is a framework, not a language. You can compare ROR with CakePHP not with PHP language it self.

    BTW attraction towards ROR is not Ruby language, but most powerfull javascript framework PROTOTYPE.JS which ROR uses internally to show application doning some web2 stuff.
  • Jayanth
    Just to cut the tension, I got a book FREE from Microsoft in some college seminar on Mobile ASP.NET (Any Takers?)
  • Ramjee
    From my use of ASP.NET and PHP, i feel the speed with which you can develop stuff in asp/visual studio/MSSQL is immense. (I haven't tried ROR, so unable to comment on that).
    I am sure there are a lot of hosting issues and the cost involved.

    Here it boils down to TOP (Total cost of the product). Though I am in total favor of OSS for my solutions. I guess we cannot rule out AVM (Asp,Visual studio,MSSQL) for dev.

    Also checkout this link for startup help from Microsoft. (http://microsoftstartupzone.com/)<br />
    @Sri
    Would appreciate a lot if you have post on TOP(Total cost of Product) including dev, resources, deployment, maintenance etc.
  • Pradeep B V
    Please take a look at

    http://www.ohloh.net/articles/php_eats_rails

    And to know where do Apache or IIS stand have a look at this.

    http://survey.netcraft.com/Reports/200706/byserver/

    You are free to draw you own conclusions.
  • Sri...
    @terry

    So should i again shell out $195/server for the IIS mod_rewrite along with Windows license fee,software up gradation, annual maintenance and off course fro the .NET framework.
  • Terry
    You can get mod_rewrite and and .htaccess functionality on IIS with IIS Mod-Rewrite:

    http://www.micronovae.com/ModRewrite/ModRewrite.html
  • Sri...
    @Aashish

    well its a Open source concepts which I am found off and looking fro brighter spectrum in this regard, I am least bothered with MS coming with Mobile applications, u need to understand mobile was brought by SUN and JRE is open source now

    so, Kannel i pointed becoz its pretty old and been used worldwide,and I we got to be looking fro options of how to monetize the needs rather than thinking what MS would bring with new Visual Studio, so if you could afford for commercial license then very well its viable for you, I am looking at Cheap, but yet Best and its OSS
  • rarv
    Agree with Sri...First thing that goes into any devlopment phase in the cost of the project,which is where PHP surely has the Edge

    unhelpful "service unavailable" messages you get which are traits of MS version of IIS is wat i hate

    Very True u will have really Ugly URL's when posted on have IIS like Thread no or post number

    ASP.net and PHP mode seems to be the way out for coding geeks
  • Aashish Solanki
    @ sri

    See thats a good insight!
    The new version is coming right. But what point I was making is the 'already exiting feature' and 'coming soon factor'

    I completely agree with the points you made and why MSSQL is sometimes better.

    And right kannel is a open source option. But how many of today's legacy system programmers migrate to it when asp has built in. Just a view. Nevertheless am sure it has a bigger base than the competitor!
  • Sri...
    If ASP.net can bring mobile platform , why do you think it difficult for a PHP community to build upon, you need to subscribe for the newsletter's at the PHP site, you would get more details and insights of developing API's for WAP gateway and on open source channel.

    there are ample of OSS for WAP too,
    check this :
    http://www.kannel.org/
    its matter of time to get things done, there are many INDIAN startups with PHP and WAP adaptable running, on a PHP level its too very easy to go ahead and get things done in quick time,
    even the supportive J2ME calls to be made on a JSP pages is more expensive in this regard.

    Wait for next version of PHP with built in support features for WAP gateway!
  • Aashish Solanki
    @sri
    Good comparison in the above post.

    One point I would like to make Sri is asp.net is witnessing certain amount of changes and a big step with compatibility on mobile platform of your asp.net code simply amazing.

    Correct me if I am wrong, asp.net code can be made mobile compatibility in a jiffy with a single mouse click!

    Ok, that apart asp.net has Visual Studio to its support which is brilliant!

    But as always you have a price tag attached to all that I am mentioning and its from MICROSOFT!

    I swear by LAMP, its the most deadliest combination on web with 70% or more sites running on apache.

    Nice topic to debate on, will talk more on it with Sri in office tomo! [:P]

    @ajay
    ROR is coming up rapidly, but with a HUGE php fan followers its difficult to replace php.( a case of Java vs anything else scenario)

    ROR is great because it allows to quick start an app, build rather than manage. But lot of development and scalability issues are there.

    EG: Cleartrip.com started with ROR but then it could not handle well so they had to migrate.
    Read this --> http://www.cleartrip.com/forums/39/topics/99

    But all said and done, thumbs up to ROR! I see a faster growth for ROR than phb, at the same time more adopters of php than ROR.

    so a matter of time!

    waiting for your thoughts!
  • Jayanth
    ROR will rule soon..

    But HOW CAN YOU LIKE MSSQL??

    NO ONE USE IT.. sorry about the caps though.. :)

    You are contradicting yourself when you say you like MSSQL and you say use MYSQL!
  • Sri...
    Well, rails could be a successor of PHP, but yet on a implementation part it looks weak on a Interoperability needs, and its support level needs to increase.

    I would be happy if the standard is raised and we shall always have PHP and RoR to completely replace all existing CGI scripting!!

    this could throw more light on the fact: http://www.pluggd.in/2007/06/open-source-vs-con...
  • Ajay
    Nice article Sri. But why do you think PHP is better than ROR? For me rails rocks
blog comments powered by Disqus