Forum Moderators: phranque
If you want to compare PHP, you should be comparing to ASP.. as they are in the same league IMHO. ASP.NET is in a different category than ASP/PHP.
Gesh I hope this doesn't turn into "My platform is God, and yours sucks"..
Anyway, you can go to [asp.net...] and read up.. go to the Tutorial tab if you want to see the Quick Start tutorials.. they are pretty good.
Btw, ASP.NET is able to run on Linux now.. www.go-mono.com has the C# compiler done and working.. starting to see some Mono web-hosts too. Thats pretty neat :)
The main reasons I choose PHP over ASP is :
1) PHP is WELL documented
2) PHP has MySQL functions (MySQL is godly)
3) PHP can be run for practical/everyday use via command line (not sure if ASP can or can't)
4) PHP runs smoothly with Apache (I use a ton of Apache modules)
5) PHP code is similar to Perl, which is like 100 times easier to read logically than ASP/Visual Basic.
6) IIS sure has had a lot more exploits than Apache (keep in mind that ASP is essentially written for IIS)
And yes, I know you can run PHP as CGI on IIS but it's just not the same... it's not meant to be.
-panic
ASP.net is on par with jsp and really not PHP. It has its problems like it being slow the first compile and bigs since it is new. People will be living to exploit it also since it is microsoft. It intagrates with client side software and makes it a very desirable application technology.
[edited by: korkus2000 at 1:05 am (utc) on Aug. 5, 2003]
My question would be do you need to learn both or can you do everything you want with PHP.
If you are a web developer who needs to be able to do both, to get additional work then learn both. For example I recently picked up a new client who has an existing site built using ASP and I wouldn't have got the work if I couldn't use this language.
It is therefore important to me, to be able to develop in any language, it also gives me the ability to look at a completely new project and decide which solution would work better.
As always with any language, it also boils down to how comfortable and competent you are with a language, I am quite sure that there are many programmers who can do things with PHP that some ASP.NET programmers can only dream aout.
now, the remoting interface IS godly, make no mistake of that.
For small projects, I beleive php can increase development time, but for large ones, you will wish you used asp.net.
One thing that SUCKS about asp.net is the runat="server" crap as well as that variable that always comes down to the page... the one that holds all that state info.. they invalidate the page which I can't be happy about.
1) PHP is WELL documented - Microsoft is working on that. It is new. It should be well documented, ESPECIALLY if it's new
2) PHP has MySQL functions (MySQL is godly) - Write your own object in ASP.net. No thanks. :D
3) PHP can be run for practical/everyday use via command line (not sure if ASP can or can't) - I am really not sure about command line. Why do you want that? File manipulation accross various files, putting files into multiple directories at once, and a ton of other stuff that doesn't need an HTML front end, or a front end at all, for that matter.
4) PHP runs smoothly with Apache (I use a ton of Apache modules) - ASP.net runs smoothly with the IIS and .net framework. There are many modules that work on IIS that are like the apache ones. You can recreate almost anything on windows that you have on apache. Again, why re-create the wheel? You've got people charging like 100 bucks for a mod-rewrite module for IIS, when it's completely free for Apache
5) PHP code is similar to Perl, which is like 100 times easier to read logically than ASP/Visual Basic. - C# is like C and Java which makes it very logical. You can also use many other languages VB, javascript, and python. You mean to tell me it even comes close to the ease of PHP?
-panic
Though, it is VB like and most Computer developer are towards C like (PHP, PERL, CGI..) or Java like (JSP...).
It comes with a cost of learning a totally new pltaform and a totally new syntax. No body has proven that this would be beneficial yet. .NET was not well accepted in the market yet.
It comes with a cost for putting up a server and running it. Few companies would like to pay that much in this recession.
It comes with a cost for monitoring the server because if a compiled script locked the server, it would be hard to trace down like pure text.
However, .NET compiled scripts are fast to load as out of process and in fact they are on the rise. If you have ASP, I suggest going for C# or J#.
Luck
--> does asp.net (as opposed to the .net framework) support multiple threads of execution?
Yes, asp.net supports multithreading programming with the System.Threading namespace.
I was more interetested in this issue from an application perspective. I can't find any documentation that indicates that the PHP Application(engine) is indeed a multi threaded application which depending on the project it might be in your best interest to steer a customer to a more powerful architecture soley for performance reasons and not language preference reasons.
I've read in this thread that PHP is well documented. Where can I locate documentation regarding the PHP Application Architecture?
I downloaded the .net framework free via windows update and it is running side by side with my asp/vb6 applications on a production level IIS 5 box. So far it's cost us nothing to start using .Net.
I've read in this thread that PHP is well documented. Where can I locate documentation regarding the PHP Application Architecture?
It's very simple:
faqts.com/knowledge_base/view.phtml/aid/10410/fid/28
And that's why it's the most popular:
php.net/usage.php
You won't be seeing .NET at those numbers - ever...
So far it's cost us nothing to start using .Net
Uh-oh, all those MS dev apps (and pre-built .NET objects) and the OS didn't cost you anything? Don't tell the BSA!
;)
Does PHP output html based on the browser inherently?
Can you port your PHP code right into a client side app?
etc, etc.
PHP is great for do regular server-side stuff. All these aurguments are great for why you use PHP over ASP, but not .Net. .Net is not a competitor of PHP. When PHP upgrades to have the equivalent functionality of JSP and ASP.net then there can be a comparison. It is like comparing VB and C++. You can do the same stuff, but one is more functional by design.
You won't be seeing .NET at those numbers - ever...
If all I need to do is go in and out of a database, I am not sure I would use .Net. The power is for large scale functional apps. It really will have draw backs as a basic server-side language. You can do it and people are, but I don't think I will.
Does PHP output html based on the browser inherently?
Can you port your PHP code right into a client side app?