Current location: Hot Scripts Forums » General Community » The Lounge » ASP or PHP which is better?

ASP or PHP which is better?

Reply
  #1 (permalink)  
Old 08-22-08, 07:10 AM
nepala nepala is offline
Newbie Coder
 
Join Date: May 2004
Location: Kathmandu
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
ASP or PHP which is better?

ASP or PHP which is better?

While making website, and specially when learning programming, people get most confusion which language to learn whether asp or php, so to clear that confusion let evaluate some basic things Required on programming...


Server or platform:

ASP runs only in windows ( can also run on Linux but not supported by many host and not so compatible), while php runs on both Linux and windows server. So its clear that ASP is most expensive to run coz we need window server and then iis .. even though iis is free but window server cost much more.

Database:
ASP supports all databases but its best run with access and ms sql. If your application requires more users and more constant hit then ASP is better coz you can use mssql which is far better than mysql. But if you have fewer users then you can also use access with asp but the main problem with access is, it cant handle more concurrent hits and crashes most of the time. ASP doesn’t runs well with mysql, you may get problems on paging . PHP runs best with mysql, and also support mssql. Best part of mysql with php is its more versatile and easy in compare to asp with mssql. MYsql is simple and easy to use while mssql is more complex. If your database size is less than 2GB then you must use mysql with PHP but if you have high size database then mssql is the option.
The main draw back of asp code on database is, when you create record set asp will load all the data to the record set . So no matter you are showing few records , yours recordset is holding lots of data and if you have 10000's of records your asp application may hang. So you must use Store Procedure with mssql or view with access. But in PHP you dont have that problem.


Programming comfortable:
If you know both asp and php language programming is easy on both side. PHP is more c/c++ style programming but that doesn’t mean that you have to program is oops way. ASP is more VB style programming. As per the online resources is concern you will get php recourses more than asp. With php you can also easily work on server related programming like dns, meta data e.t.c but in asp its very hard to work on server side manipulation and you need special permission to do that from admin. Many Window server provider dont give you advance access that you need to work for asp program like folder permission, root parent path enable e.t.c while in php you can do it easy with ftp command.

Business point of view:
Mainly customers dont know what programming language , they need their program on. but many have cheap hosting with linux so they may ask you to make on php. Since there are many php programmer in comparison with asp one, you may have chance to get more work being asp programmer. But it just assumption. As per my experience making program on asp is more profitable than in asp as many programmer or business owner they get less asp programmer and for advance programming you can find your customer easily. while in php there are many php programmer so competition is high and even though demand is high, you chance of getting work is less... ( just a perception)



Extra cost:
Many add-ons for php are free ( if hosted on Linux). but with asp you need to pay for almost everything like mail component, ftp component, image upload component e.t.c


Conclusion:

By above idea we can say that PHP Programming is cheaper than ASP programming. but with database if you have complicated requirement i suggest ASP than php. As per the programming is concern, since resources of php are widely available than asp so its easy to program php than asp but as per the syntax and programming concern its of no difference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 12-04-08, 11:35 PM
CoderBoi99 CoderBoi99 is offline
New Member
 
Join Date: Dec 2008
Location: Canada
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Excellent post. As for ASP handling a more complicated app than PHP I'm not sure that's true. One thing I like about PHP is that you can extend it with C extensions, even dynamically loadable. I've also been able to run a very stripped down version of PHP on a VPS thanks to the open source code by compiling a minimalist version and running on low memory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 12-05-08, 09:22 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 2,838
Thanks: 13
Thanked 11 Times in 10 Posts
Quote:
Originally Posted by nepala View Post
Conclusion:

By above idea we can say that PHP Programming is cheaper than ASP programming. but with database if you have complicated requirement i suggest ASP than php.
I disagree.

PHP supports virtually every database in existence, and is quite capable of handling applications of any complexity.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data (scroll down)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 12-05-08, 10:19 AM
digioz's Avatar
digioz digioz is offline
Community Leader
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 1,898
Thanks: 2
Thanked 0 Times in 0 Posts
Great post, but please post threads like this in the Lounge from now on.

Pete
__________________
DigiOz Multimedia
http://www.digioz.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP equivalent function in ASP Hunta ASP 1 04-12-06 06:09 PM
Programmers,Why You choose PHP but not ASP? inso PHP 36 11-19-04 05:30 PM
can we embed php in asp files phper3 PHP 1 11-05-04 01:43 PM
Require ASP coder to convert some PHP BosDev Job Offers & Assistance 2 10-30-04 05:12 PM
converting php date picker to asp AshleyQuick ASP 3 05-25-04 12:52 AM


All times are GMT -5. The time now is 07:30 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.