I know both PHP and JSP. I use PHP because its widely available and its a pain in the ass to find a good JSP host. I like it more as well.
I also love PHP, it's an easy and logic language, and you can create almost any online system you want in very little time.
PHP. Clean and free, what more could you are. Well supported? Oh yes, that too. Cheaper for the server. The list goes on .
PHP, ugh. Grotesque language. No consistent naming convention, ten thousand functions and constants all in the global namespace, makes assumtions about what you will be doing and corrupts your data on that basis, insecure emailing, and more if I looked harder, I'm sure. PHP is well suited for strung together programs, and allows many programmers to remain ignorant about the problems they potentially create. Interesting read. PHP has never given me a reason to switch from Perl. JSP certainly would; I can only claim laziness for not having learned this yet.
yep, that's my site in a nutshell, FeelLikeANut, it's working for now though. I learned php by looking at phpNuke code, it's no wonder.
PHP has its place. For hacking together something quick and simple, I'd definitely pick it over perl. Then again, I'd rather do assembly language than perl. <shudder> For big, complicated projects, PHP would probably be my last choice (yes, hard as it is for me to admit this, I'd probably even be more willing to use perl ). What I would choose would have a lot to do with business requirements. Need a cheap server? Python. Want the latest hype from Redmond? ASP.net. Willing to go with a powerful *NIX host? Now the choices get even wider, and I get to toss more variables into the equation. That being said, I haven't gotten around to really learning JSP yet, although I should.
PHP because: - Excellent database integration - Free - Secure - Light on the server - Source code is available - Speedy - Follows C syntax which is easy for a seasoned C programmer like me What more reasons do you need?
Hmm. How about a clean global namespace, non-revolting syntax, decent object orientation capabilities, and consistent naming conventions? PHP has a lot going for it, but it's far from perfect. I definitely would not want to try doing a big project in it.
This is debateable. For instance, the mail function improperly handles headers, unless it has been fixed and I didn't hear about it. It allows header injection, as it is now called, meaning a user could set the headers and message body of an outgoing e-mail to anything they choose. So far this has only been kept in check by requireing the individual programmer to manually check for such conditions before the mail function is called. As for the others on the list, Perl naturally has 4 out of the 7, 6 out of the 7 with FastCGI or mod_perl, and 7 out of 7 with widely available libraries. PHP doesn't reallly offer anything new or unique. I does have several drawbacks, however.
Just for the record, I don't think this was really a reply to me. I don't think I've ever claimed PHP was secure.
I thought you could get free tools for it? I'm sure I remember seeing something along those lines somewhere. Or did you mean free as in libre? Then again, without the full Visual Studio, ASP.NET 2 loses a lot.
Some "Express" editions of the Visual Studio are free, but _hosting_ asp.net applications is not - Windows and IIS definitely are not free.
I run asp.net on my Linux server in Apache Runs fine on my ibook, too. I still need a good alternative for Visual Studio that runs under Mac OS X though. Been busy trying to get monodevelop running but it won't Here is the opensource .Net that runs on mutiple OSes: http://www.mono-project.com/Main_Page