So I keep on hearing about this language called ASP, and I did a little digging and it looks basically like PHP but with different syntax. What is it this ASP thing, and is there any reason to use it instead of PHP? As in, are there certain things that it can do better that PHP can't?
ASP is similar to PHP. They all easy to learn . So you can choose either of them . I like php more.
ASP is even easier, but not as powerfull and there isn't as much support for it online. Also there are more free webhosts and there is more software for PHP. If you don't have any real good reason to start with ASP you shouldn't look at it (and if you have you should learn PHP, try it with that and if it doen't work use ASP).
PHP is faster, easier to learn, and larger community.
ASP is harder to learn, slower, but a programmer in ASP would be payed more, since way too many people know PHP.
ASPX (ASP.NET) is supposedly an unbelievable language, not like ASP, but way better and some even say it will be amazing (i dunno anything about it so don't ask me).
If you want a quick learn and do some stuff, learn PHP, But its better to learn BOTH, than just 1, and i would recommend learning ASP as it can be more challenging (fun) and may even bring you more opportunities.
ASP isn't harder :/
Or you have to only look at simple stuff like echo and simple if statements, but if you want to take everything out of the languages I think there's more to PHP than there is to ASP.
Also if you want to write secure scripts in PHP it's a lot harder than most beginners seem to think. It takes most people a couple of months at least (if it's the first language) to learn about sql injection, cross site scripting, session hijacking and stuff like MVC, singleton and facade is only for those who try at least half a year.
Of course there are some who learn faster, but in ASP you'll be making websites much faster.
I think ASP is a good and useful technology, but in the long run I believe
PHP will prove superior -- both technically and in popularity. There are seven
reasons why I think so:
|1. Speed Speed Speed
The first time I ran a PHP script, I said to myself, "this is a
Ferrari, so fast." I was using a slow 166 Mhz PC, but you can get a lot
of fast mileage off PHP.
ASP will probably never be as fast as PHP. ASP is built on a COM-based
architecture. When an ASP programmer uses VBScript, he is running a COM object.
When he writes to the client, he's calling the Response COM object's Write
method. When he accesses a database, he uses another COM object to do so. When
he accesses the file system, another COM object is called. All this COM overhead
adds up and slows things down.
In PHP modules, everything runs in PHP's memory space. This means that PHP
code will run faster because there is no overhead of communicating with
different COM objects in different processes.
2. Superior Memory Management
In ASP's model (in IIS 4), if an ASP file header.asp is included
into 20 web pages, then 20 compiled copies of that header.asp are
maintained in memory. IIS 5 has implemented an improved memory management
model, but only programmers who are using Windows 2000 can upgrade because
it is not backward compatible with IIS 4, and Windows NT 4.0 cannot run IIS
5. This means that most IIS web servers are still stuck with the inferior
memory management model.
This is unlike PHP, which only loads include files that are required.
3. No Hidden Costs with PHP
One of the things I hate most when buying anything is hidden costs. You
buy a car and you have to replace the engine. You buy a house and have to
retile the leaking roof.
Well, buying ASP is a bit like that. Need encryption -- buy ASPEncrypt.
Need email management -- buy ServerObject's QMail. Need file uploading --
buy Software Artisans SA-FileUp.
All this is built into PHP for free.
4. MySQL makes it cooler.
PHP's integration with MySQL is simply fantastic. There are lots of PHP
tools to manage and maintain MySQL databases. The feature set is complete
compared to other databases. We have very useful functions like
mysql_insert_id and mysql_affected_rows which are not available for other
ASP and PHP are both very good solutions for mid-range web sites. What
makes PHP stand out is the tight integration with MySQL. MySQL is also tuned
for mid-range web-sites, where selecting and pumping loads of data is more
important than transaction support. This transaction support allows the
programmer to synchronise updates on multiple tables; which the majority of
web sites do not require.
When we compare databases Microsoft Access is much slower than MySQL. SQL
Server 7 and Oracle are nearly as fast, but much too expensive if you don't
need the transaction support.
19 April 2001 Update: Many database experts have told me how foolish I
am to compare MySQL with Oracle and other high end databases. This comes
from a fundamental misunderstanding of how most Web sites operate. Most Web
sites serve thousands of Web pages a day, but perform fewer data updates.
And a typical data transaction is simple single table update for user logins
or forum posts. So a database with speedy SELECTs and lousy INSERTs and
UPDATEs like MySQL is a good trade-off in this environment.
5. Closer to Java/C++ Style of Programming
OK, the benefits of this statement is an opinion.
I agree that you won't convince a hard-core Visual Basic programmer to
switch to PHP just because PHP has C or Java style for-loops, curly-braces
But you could convince someone who likes C++ or Java that PHP is a better
or easier language to learn than VBScript.
PHP also has good support for modular programming in classes. Usage of
classes is still rare in VBScript because of its heritage. PHP's common
heritage with Java and C++ ensures a large body of programmers who uses
classes all the time.
6. No Show Stopper Bugs
Have you ever asked Microsoft to fix a bug in ASP? If you aren't a large
corporation like Boeing, the chances of getting that fix quickly are pretty
low. And if it is a show-stopper of a bug, where nothing will work if this
bug is not fixed, what are you going to do?
With PHP, even if you don't have the expertise in-house to fix the bug,
you can definitely hire the expertise. There are no show-stoppers in PHP.
Your investment is protected by the Open Source nature of PHP.
7. Cross Platform Migration Strategy.
Microsoft is constantly tuning ASP. The next generation, called ASP+ is
being previewed now. I have no doubt that they are fixing some of the
criticisms I have mentioned.
But there is also no doubt that Microsoft aims to lock you down to use
I used to be a Macintosh programmer. When Windows 95 came along, I
switched, but most of my code was never ported over. It's still archived
somewhere but I never do anything with it, much to my regret. I don't want
the same thing to happen to my Windows code.
So do you have a backup strategy in case Microsoft sinks? Don't forget
that at one time Novell was nearly as dominant as Microsoft in the
networking arena. Today everyone is ditching Novell. It might happen to
I found my backup strategy. It's called PHP. I still program on Windows,
but I know my PHP program will run on Solaris, Linux and many other
operating systems. I have peace of mind.
edit by rvec: please use quote tags when quoting
|jinger89 wrote: |
|So I keep on hearing about this language called ASP, and I did a little digging and it looks basically like PHP but with different syntax. What is it this ASP thing, and is there any reason to use it instead of PHP? As in, are there certain things that it can do better that PHP can't? |
php is open source easly availabe as compare to asp. many web host does not provide asp. php is a better option in such conditions php is easy to learn too.
I use php but I think asp is also good.
I don't know any free host service for asp, that is the reson about i learned php.
I think you shoud have windows server to test any asp file while to test php file you should install a little program and all warks fain....
i will like to learn asp ? Somebody can say me how to run asp file?
PHP is a relatively simpler language to use than ASP.net. Initially, PHP was written in the C programming language to replace a set of scripts in Perl. That is the reason why coding in PHP remains simple even today. Many developers find themselves to be more at ease with the user-friendly nature of PHP when it comes to coding. However, critics also count this advantage of PHP as a disadvantage. Some of them maintain that the language of PHP has not been updated much, and hence it is still quite archaic and even, somewhat cumbersome for coding. ASP.net, which is a relatively new development, has a lot of options when it comes to languages. Here, you can use languages such as C#, J#, C++ and VB.net. Hence, when it comes to sheer choice, ASP.net has better to offer. But PHP is no less, since it can do its task quite well, even with its minimum language tools.
thanks everyone for sharing, this is useful topic with me
the thing is that even if its free php, php is still a better programming language and the amount of info that you can find on the net via tutorials plus support via the community just kills asp. anyway arent MS products for noobs?
Well ... the main reason why ASP isn't so popular is ... that there is almost no free windows IIS platform hostings avalable ...
But lot of corporate sites pick ASP ... maybe it's because security ... but I prefeer PHP
|b4r4t wrote: |
|maybe it's because security |
Well... "illusion of security" is probably more accurate. There's a common misconception among businesses that closed source software is more secure than open source software. Arguably it's the other way around, as anyone can view the code security holes can be discovered and fixed quickly, whereas with closed source software a critical vulnerability can go undetected for far longer.
Hopefully the case study of whitehouse.gov adopting the open source CMF Drupal for their website will do something to alleviate this FUD (Fear, Uncertainty and Doubt) that closed-source marketers try to spread about open-source software.
The point about no free ASP hosting available... well, that's perfectly true. After all, ASP is commercial software. It runs off the IIS platform which is itself commercial software. Which requires... Windows, also commercial software. At least three points at which you will need to hand over substantial amounts of money to Microsoft.
PHP is free, and works on almost any platform, with almost any server. ASP pretty much only works on Windows Server (IIS or PWS), which costs $$. PHP is more developed, and has a bigger user base, so its ultimately better. However ASP is behind the times now, the alternative people are using today is ASP.NET which is a completely difference language, which uses the .NET framework.
|cr3ativ3 wrote: |
|PHP is free, and works on almost any platform, with almost any server. ASP pretty much only works on Windows Server (IIS or PWS), which costs $$. PHP is more developed, and has a bigger user base, so its ultimately better. However ASP is behind the times now, the alternative people are using today is ASP.NET which is a completely difference language, which uses the .NET framework. |
Similarly to how people who say Linux almost always mean GNU/Linux, I think most people nowadays when they say ASP mean ASP.NET since plain ASP has, well, zero adoption (and rightly so).
at work i must write somestuff with asp (active server page).
Is not a programming language, you can use c# or Basic or whatever.
C# is ok but for a website ?
It dont works with linux.
learn php,python,ruby or perl if you want write websites !
This languages are platform independent !
If you want use free-hosting take php or perl !
Of you want a programmer learn all !
I'd recommend php.
ASP is generally more windows based.
PHP can run on both.
|ASP is even easier, but not as powerfull and there isn't as much support for it online. Also there are more free webhosts and there is more software for PHP. If you don't have any real good reason to start with ASP you shouldn't look at it (and if you have you should learn PHP, try it with that and if it doen't work use ASP). |
it is easier for sure but PHP is far far better. the servers are cheaper too and since PHP is more popular, it is easier to look for open source too and get help at the same time.
PHP is free and ASP isn't for the features PHP has to my knowlage. You could probably live a lifetime and see 20x more php pages than you see ASP pages...
I prefer PHP since I believe it is a more cross-platform programming language than ASP.net.
Isn't ASP only supported by web servers running Windows? Or am I totally wrong here.
Well, PHP can at least run on both UNIX/Linux based platforms and Windows servers.
If you are constructing an online translation tool, are PHP or ASP the best language?
I would definitely go for php because of its open source nature and hence have a lot of support online. There are no single free hosting using ASP. It is one of the best web programming language out there. I don't think php is hard to learn as well. You can always find a good resource on the web.