惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
V
Visual Studio Blog
P
Privacy International News Feed
月光博客
月光博客
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
Lohrmann on Cybersecurity
N
News and Events Feed by Topic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
Webroot Blog
Webroot Blog
T
Threatpost
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
小众软件
小众软件
L
LINUX DO - 最新话题
C
Cisco Blogs
T
Troy Hunt's Blog
Schneier on Security
Schneier on Security
酷 壳 – CoolShell
酷 壳 – CoolShell
www.infosecurity-magazine.com
www.infosecurity-magazine.com
雷峰网
雷峰网
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Know Your Adversary
Know Your Adversary
博客园 - 叶小钗
罗磊的独立博客
V
V2EX
博客园 - Franky
P
Proofpoint News Feed
SecWiki News
SecWiki News
腾讯CDC
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Jina AI
Jina AI
博客园 - 三生石上(FineUI控件)
S
Secure Thoughts
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
PCI Perspectives
PCI Perspectives
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
Last Week in AI
Last Week in AI
aimingoo的专栏
aimingoo的专栏
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
S
SegmentFault 最新的问题

博客园 - 巍巍边疆

最新版Android开发工具 卸甲归田 Android模拟器调试网络通讯 12月编程语言排行榜:C#前途无量 便捷的安全检测 Windows 7 64位中安装IIS失败?“出现错误。并非所有的功能被成功更改” Microsoft VBScript 运行时错误 错误 '800a000d' 类型不匹配: 'regEx.Replace' 64位系统上的Jet for Access, Excel, Txt 64位IIS(IIS6/IIS7)上运行Jet.Oledb的设置 超经典!90后看不懂的操作系统 如何在浏览器看到ASP的错误详细信息(IIS7.0) Javascript DataGrid using the MVC 【转载】Resharper上手指南 QQ2010在win7中安装时如何把个人文件保存于安装目录下 大智慧日K线的数据结构 实时股票数据接口大全 获取实时股票数据与股票数据接口API 合格的CIO需要具备怎样的素质 SQL Server 怎么设置星期日为一周的第一天
PHP and ASP.NET - A Feature List
巍巍边疆 · 2011-02-28 · via 博客园 - 巍巍边疆

http://www.codeproject.com/KB/applications/php_asp_net.aspx

The choice of technology is completely dependent on the requirements. The factors that influence the decision of choice are based on the following:

  • Complexity of Business logic
  • Density of contents
  • Expected number of Hits (if it is a website)
  • Budget
  • Size of project, etc.

There are multiple options available for many features. The major ones are listed which are my recommendations.

ASP.NET PHP Comments
Latest Stable Version 4.0 5.3.3 As of 19 Aug 2010
License MS EULA PHP License v3.01
Price
  • ASP.NET - .NET Framework is free. So ASP.NET also free
  • Web Server – IIS – Not Free. OS cost applicable
  • OS – Windows Server – Not Free
  • PHP – Free
  • Web Server – Free
  • OS – Linux is free, Windows is costly
PHP can be installed on any OS and Web server. But ASP.NET is recommended for IIS only (even though ports to few web servers available)
Third Party Hosting Price Cost involved Cost Involved Both are not costly but if you compare, PHP is found to be a little bit cheaper
Development Cost Developer cost Involved Visual Studio Express Editions are free Rapid-Application-Development Model. So development takes less time Developer Cost Involved Free/Open Source IDEs available Much coding involved Both are same but ASP.NET is more on Rapid-Application-Development and PHP is more on Coding
Cross Platform Yes Yes Whatever server side language you use, browsers render only as HTML. But development is not cross-platform even though ASP.NET got ports for Linux available
Code Portability  Partial Yes For PHP, a code written on Linux/Apache will work on Windows or any OS/Web Server. But .NET, even though we have ports available, you will require some tweaks to make it run.
Cloud Feasibility Possible Possible Additionally, for ASP.NET -SQL Azure is also available for database hosting.
Mode of source Closed Source Open Source Application developers have no benefits for either it is closed or open UPDATE: Microsoft also opened .NET framework code for reference. Note that it is just for reference. You cannot do anything except reading. A real open source must be able to download, make amendments, re-compile. You cannot make your own .NET versions.
Promoted by Microsoft PHP Community
Customer Support by Owner Yes No
Security Fixes Auto Update – part of OS Need to update separately when available Both parties release fixes for bugs and security issues instantly
Developer Help Community Community Both technologies got fans worldwide. They will provide help and guidance through forums, mail lists, news groups, etc.
Languages
  • C#
  • VB.NET
  • Jscript, etc.
PHP
Database Any Database Good fit: Microsoft SQL Server Any Database Good fit: MySQL Supports most of the databases
Frameworks / OOPs There is an inbuilt framework (called web forms framework) available which will force developers to use OOPs You can write both procedural and OOPs based code
MVC Microsoft ASP.NET MVC Symfony
Development IDE
  • Recommended: Microsoft Visual Studio
  • Any IDE
  • Recommended: Zend Studio
  • Any IDE
Even Notepad can be used for coding. PHP is more easy for that, but if you can afford Visual Studio, then ASP.NET.
ORM
  • ADO.NET Entity Framework
  • NHibernate
Doctrine
Templating NVelocity Smarty
Extensibility
  • ASP.NET uses Microsoft.NET framework. So you can make use of any functionality available on .NET framework
  • HTTPHandlers
  • HTTPModules
  • ISASP Extensions, etc.
PECL – PHP Extension Community Library
Easy to learn Yes Yes Personally I found PHP to be easier for a beginner to learn programming
Recommended for Huge systems? Yes No As per my analysis, PHP is recommended for small-to-medium projects and ASP.NET and JSP for medium-to-big applications UPDATE: If you think about Facebook, please understand that:
  1. it uses a re-written PHP and a
  2. transformer+compiler called HipHop which transforms PHP code to highly optimized C++ code and then compiles with gcc. We are talking here about the PHP we get for application developers from PHP.NET (as it is).
Content Management Systems
  • DotNetNuke
  • SharePoint
  • N2CMS …
  • Typo3
  • Joomla
  • Magento …
Wide variety of options
Advancement Growing very fast Growing with limited speed Micorosft’s team is keen to develop and integrate new features. But since PHP is promoted by community, it takes time to reach that level
Backward Compatibility Old code will work on new framework versions without change Old code might need tweaks to make it work on latest versions
Security IIS must be improved from the past and now a days it is one of the secure web servers Major web servers are secure ASP.NET, PHP, Oss and its servers are mostly secure. Now developers need to make sure their coding is secure.
Performance Faster Faster for small programs and slower for medium-to-big programs Very basic old argument – ASP.NET is compiled and PHP is interpreted (line by line compilation and execution)
Deployment Multiple methods available E.g.: Publish, XCopy, MSI You need to copy/paste code to server somehow (e.g.: FTP)
Some useful features
  • WCF (Windows Communication Foundation), Web Service, .NET Remoting etc.
  • ASP.NET AJAX
  • Built-in Caching features
  • Web Service
  • Third party Ajax libraries
  • Third party Caching libraries

I do not claim all I stated above are true, but all that I believe to be true. Also this list is in no way complete. It is time consuming to build a full list, so I included the major points only.

Correct me if any point is wrong or if I missed any important points.