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 TechnoratiShare 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 TechnoratiShare 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: 3,027
Thanks: 14
Thanked 35 Times in 33 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 | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare 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 VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Great post, but please post threads like this in the Lounge from now on.

Pete
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 05-27-10, 01:46 PM
ankit.nagpal ankit.nagpal is offline
New Member
 
Join Date: May 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
talk about asp.net vs php. asp.net is highly multi-threaded and thus better for sites having millions of hits daily. infact if you see orkut.com, hi5.com, facebook.com they all run on asp.net code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 05-27-10, 02:36 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
Facebook actually uses a custom version of PHP (HipHop)

HipHop for PHP: Move Fast - Facebook Developers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 05-27-10, 07:49 PM
hunterhdolan hunterhdolan is offline
Newbie Coder
 
Join Date: Oct 2009
Posts: 30
Thanks: 5
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by ankit.nagpal View Post
talk about asp.net vs php. asp.net is highly multi-threaded and thus better for sites having millions of hits daily. infact if you see orkut.com, hi5.com, facebook.com they all run on asp.net code.
you think facebook runs asp?? Look at the urls! https://www.facebook.com/login.php!
__________________
I was laying in bed last night looking at the stars..... Then it occurred to me. Where the hell is the ceiling!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 06-02-10, 12:42 PM
scott2500uk's Avatar
scott2500uk scott2500uk is offline
Coding Addict
 
Join Date: Apr 2006
Posts: 275
Thanks: 2
Thanked 2 Times in 2 Posts
This argument is won by PHP purly and simply because ASP is old news.

If the argument was ASP.NET vs PHP then thats a tricky one.

When coming to pick which one to learn then its comes down to for what reason are you wanting to learn for? Is it for a hobby? then I'd definately pick PHP. Or is it because you want to work for a big firm that uses microsoft as it main OS? Then ASP.NET would be more useful.

My personal choice still falls with PHP on the grounds that any web technical challenge I've encounted I can solve with PHP.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 06-10-10, 04:59 AM
QualityHost QualityHost is offline
New Member
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Another vote for PHP!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 07-14-10, 06:48 AM
drsim's Avatar
drsim drsim is offline
Newbie Coder
 
Join Date: Jul 2010
Location: UK
Posts: 45
Thanks: 1
Thanked 1 Time in 1 Post
Definately PHP, because it is open source and has millions of pre-developed scripts and plugins. PHP ROCKS.
__________________
Thanks,
Web Designer/Developer
Latest News | Movies Reviews | Shop Online
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare 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 11:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.