PHP vs ASP , which one to choose on my project.


I have some hands on experience on already built a web site on my own.
I will soon be giving a project of web site creation on a freelance hire web site on internet.
The web site will be selling some e-books so it will need to have an admin panel etc...

I requested the web site to be on ASP  + MSSQL but
 many programmers suggested to write the site in PHP and MySQL rather then ASP and MSSQL.
Could you give me any suggestions why they suggest this and which one is better ?

Thanks in advance all
Who is Participating?
GaryConnect With a Mentor Commented:
If you don't know php (actually easy to learn) and something goes wrong or you want to change something you will then probably need to hire someone to make the changes.
As you have some experience of ASP then if the site was done in ASP you could probably make the changes yourself.
As mentioned hostng ASP  + MSSQL is more expensive than open source like PHP and MySQL.

Don't be bullied into PHP, if you want ASP then get it done that way - it's your project.
Also be careful who you choose on those freelance sites.
SlimshaneeyConnect With a Mentor Commented:
I develop in both. I have worked for agencies where we make this decision many times. Generally, you go with what fits. PHP is cheaper to run, implement, develop and has far larger communities of developers to choose from. .Net gives Microsoft backing (Important for many of the Govt. agencies I sometimes build solutions for) and security (being able to compile code and protect it). .Net is true OO also, so allows for more "engineered" solutions to some problems.

In general, if money is an issue above security, we would implement PHP.
Ray PaseurConnect With a Mentor Commented:
You can achieve adequate security in either language.  Which is best?  The one that the developers already know!  Flatten the learning curve.  If you're the only developer, and you like ASP, use that.  If you want a larger support community, you might choose PHP and MySQLi.

Parts of Google, much of Yahoo, and nearly all of Facebook are written in PHP.  It is a stable platform for enterprise web development.
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

SlimshaneeyConnect With a Mentor Commented:
By security I meant securing Intellectual Property. .Net makes it very easy to "secure" code by compiling to DLLs, and licensing that code. PHP is a little less robust in that sense. But as you say, some of the best software in the world is written in each.
EMB01Connect With a Mentor Commented:
I recommend you use PHP since you don't know it.  I recently took a job where I knew nothing about VB ASP.NET MVC 3 and I hit the ground running.  Now, I have been working with it for a month or two and I'm very comfortable and can accomplish all tasks that have been thrown my way on this advanced development project.  I've learned something knew and now I'm more valuable for the next project/ position that comes my way.
Ray PaseurConnect With a Mentor Commented:
Yes, I take your point about IP and compiled code.  Some PHP developers choose IONCube for this.
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
And there is Facebook's HipHop for PHP:   PHP translated to C++ and compiled.  It's open source but I don't know where to find it yet.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.