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 vs ASP
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 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.
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:
http://www.ex-designz.net/articleread.asp?aid=159
edit by rvec: please use quote tags when quoting
PHP will prove superior -- both technically and in popularity. There are seven
reasons why I think so:
http://www.ex-designz.net/articleread.asp?aid=159
| Quote: |
| 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 database products. 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 and ->. 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 their products. 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 Microsoft. 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?
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 
Related topics
