Which is secure website? PHP or .NET
| SitePoint Sponsor |
Which is secure website? PHP or .NET
Last edited by ralph.m; Dec 10, 2012 at 03:30. Reason: removed link

They are two slightly different things but neither has ANY actual security issues in it apart from those you put there - usually when you do not properly validate inputs.
Any security problems are 99.9999999999999999999999% certain to be poor code on the part of the person using it rather than an issue with the language/interface itself.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
I would argue that .NET has a higher security standard since it's a framework and forces you to do things a certain way. PHP can be just as secure, however it leaves it up to the developer to know what to do.

<?php//Kyle Wolfeecho devBlog("My Dev Notes");

Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">

Even if you do use a framework, it isn't going to properly validate all your input fields for you and so it would still be possible for someone to fill the database with junk. You need proper validation on all the inputs in order to implement real security that prevents any form of junk being entered and not just junk that might happen to be more destructive.
Stephen J Chapman
javascriptexample.net, Book Reviews, follow me on Twitter
HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
<input name="html5" type="text" required pattern="^$">
Bookmarks