Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 01-05-2010, 07:12 AM   #1
Beta Member
 
Join Date: Jan 2010
Posts: 4
Default PHP versus ASP

PHP (Producer Open Source)
Server Platform +------------ Unix, Linux, Windows
Speed of writing+-----PHP has a much wider range of built in functions, and a less verbose syntax, making it a much quicker language for development. Other features of PHP also greatly simplify and speed up project development:
* type conversion - PHP converts types automatically
* Form, session and cookie variables are available to use straight away on the page
Flexibility PHP seems to be the more flexibile language. Its open source nature means that anyone can add features as they come across the need
Ease of Learning PHP is a much friendlier. Additionaly, there are more high quality online resources to help you.
Derived from PHP syntax is derived from C++

ASP (Producer Microsoft)
Server Platform Windows only
Speed of writing ASP has a much tighter error checker than PHP's default. This means that error reports are more common in ASP. This is also a positive when you are learning as, unlike PHP, ASP will not allow you to get away with sloppy code.
Flexibility ASP is a very rigid language - what might be efficient methodologies in PHP are completely unworkable in ASP. (ie the absence of associative arrays)
Ease of Learning ASPs more rigid structure and longhanded ways of doing things may be intimidating to the beginner.
Derived from ASP syntax is derived from VB
__________________

nevins is offline   Reply With Quote
Old 01-05-2010, 07:50 AM   #2
Fully Optimized
 
FlightSimBoy's Avatar
 
Join Date: Jun 2007
Posts: 2,114
Send a message via AIM to FlightSimBoy
Default Re: PHP versus ASP

So I'm guessing your source is http://www.me-u.com/php-asp/phpvsasp.htm and that this same information is also posted by a "nevins" at http://codingforums.com/showthread.php?p=906438?

Odd...
__________________

__________________
My Computer: eMachines T5226 - Intel Pentium D Dual Core @ 3 GHz - Diamond Viper Radeon HD3870 OC Edition with 1 GB GDDR3 VRAM - 4 GB PQi Turbo DDR2-533 RAM - Corsair 650W PSU with 52A on single rail - TSSTcorp DVD-DL+-RW combo drive - Lite-on 52x CD-RW burner - Creative SoundBlaster X-Fi XtremeGamer - Logitech z5300e speakers - WinFast TV Tuner - Vista Ultimate 64-Bit. eBay name: Flightsimboy304
FlightSimBoy is offline   Reply With Quote
Old 01-05-2010, 11:18 AM   #3
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: PHP versus ASP

Not best pleased with posts like this - I initially thought it was automated spam but with no links perhaps not.

There's really no point to comparisons like the above; especially when they're copied from another site, not brilliantly accurate and not formatted in any decent way at all. People can use Google you know...

Besides, my favourite by far is JSP. It's a shame it's not supported on more servers out there - because in my view as a language it completely trumps the other two.
berry120 is offline   Reply With Quote
Old 01-05-2010, 08:26 PM   #4
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,007
Default Re: PHP versus ASP

asp windows only? guess you never heard of mono?

I don't really think that the error control is tighter necessarily either, if you mess something up in ASP it'll let you know, mess it up in PHP it'll also let you know, just it might be filling an error log somewhere else on the server...

ASP is reasonably flexible. assuming that you know how to use it...
I guess that the difficulties are when experienced PHP programmers go on to code in ASP and find that they are having to work to a more strict set of enforced coding practices.

also, who is still using ASP in this day? aspx (asp.net) has long replaced it to all intent and purposes...
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 01-06-2010, 04:28 AM   #5
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: PHP versus ASP

Quote:
asp windows only? guess you never heard of mono?
In fairness, mono in production environments generally goes on a sliding scale of frowned upon to flat out banned - and you certainly wouldn't write something in .NET with the intention of running it on mono to start with (at least I can't see the point of doing that!)

But yes, it's definitely possible to run .NET stuff in *nix with mono and for what it is it works pretty well!

Quote:
I guess that the difficulties are when experienced PHP programmers go on to code in ASP and find that they are having to work to a more strict set of enforced coding practices.
+1 to this - and I don't think it's a bad thing. The stricter your practices are the easier it is to spot bugs and the less time spent tracking the things down. That's one of the reasons why I prefer JSP - being on a Java base everything's nice and strictly typed, the language has a good set of conventions that makes running tools like findbugs useful and the compiler catches a lot of silly mistakes before you even try and run your code!
berry120 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 10:05 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0