Slashdot Mirror


PHP 5.0 Goes For Microsoft's ASP-dot-Net

Dozix007 writes "Uberhacker.Com reports : Zend Technologies quietly announced last week the final release of the open source PHP version 5. An interesting article reports the different strengths and weaknesses of ASP vs. PHP, and it becomes quite clear that with the release of PHP5, Zend has taken a shot at ASP's heart. The differences from PHP4 to 5 has created a clear advantage for the new preprocessor over Microsoft's proprietery ASP."

112 of 478 comments (clear)

  1. How about we post to a MS whitepaper instead? by strictnein · · Score: 5, Insightful

    Interesting how the head-to-head with PHP 5.0 and ASP.NET is hosted on Oracle's site. I guess it's not like Microsoft and Oracle make competing products or anything.

    We might as well Get the Facts on Windows and Linux.

  2. Ok, here is where I object: by Bold+Marauder · · Score: 5, Insightful
    Price. Here, we must consider not simply the price tag of the initial investment, which, in the case of PHP, is obviously free, but also the implementation, maintenance, and debugging costs. In the case of PHP, you may invest in the Zend optimization engine. With ASP, however, you're investing from the very beginning, and you're spending for add-on technologies--libraries for doing graphics manipulations, for instance. But, in the long term, PHP isn't going to press you to upgrade and collect more licensing fees. Everyone who has dealt with complex licensing also knows that companies spend time and money just ensuring they are compliant. Furthermore, you have a difference in response when getting bugs fixed. This, of course, translates to time, which translates to cost for overall development.


    So...I have to pay for features that I can get from the competitor for free, I have to pay (my employees) to insure that I am paying what I need to (for a product wich offers comparable services as the competitor) and I get to continually be pressed to upgrade and give them more money in licensing fees.

    [sarcasm]Gee whiz, mister; where do I sign up?[/sarcasm]
    1. Re:Ok, here is where I object: by SpaceLifeForm · · Score: 5, Funny

      Yes, dealing with MS is a pain in the ASP.

      --
      You are being MICROattacked, from various angles, in a SOFT manner.
    2. Re:Ok, here is where I object: by mingot · · Score: 4, Insightful

      Hrm, last time I checked the entire System.Graphics namespace was part of the framework and not an add-on that costs money. It's quite capable. And MS sells no graphics library to suppliment it, so I am wondering how they press you to upgrade and collect license fees for something that doesn't exist.

      Last time I ALSO checked, though LEADTools (an image manipulation library) was really expensive. Of course it does a lot (LOT) more stuff than the built in libraries. Oh, and keep in mind that this is from a 3rd party vendor, not MS as the article would fud you into believing.

      I guess the fact that a very competent libary is included and that MS is letting 3rd party tool vendors make money is a bad thing today. Of course if this was an article about MS buying out an image manipulation library company and then giving it away for free would be bad because it stifles competetion and puts people out of work. Funny how putting people out of work is only bad when MS does it. If a bunch of college kids do it in the name of 'free software' it's just peachy.

    3. Re:Ok, here is where I object: by robertjw · · Score: 4, Informative

      So...I have to pay for features that I can get from the competitor for free, I have to pay (my employees) to insure that I am paying what I need to (for a product wich offers comparable services as the competitor) and I get to continually be pressed to upgrade and give them more money in licensing fees.

      Exactly. This is my biggest complaint against proprietary/commercial software, and the largest benefit of Open Source. As a sys admin I spend more time trying to figure out how many licenses we have, what is a legal use of a license, when we should upgrade, why we should upgrade, etc... Maintenance of the licenses cost us more than the license purchase itself.

      On top of that, old versions are usually unavailable for purchase after the new version is released, so we can't just purchase one license of a perfectly useful product for a new employee, we have to upgrade 30 people.

      For me, PHP vs ASP would be an obvious decision just because of the licensing. With PHP don't have to maintain the licenses. When I need to add a new server I wouldn't have to pay for an upgrade on the 10 existing servers.

    4. Re:Ok, here is where I object: by Bold+Marauder · · Score: 5, Insightful
      Funny how putting people out of work is only bad when MS does it. If a bunch of college kids do it in the name of 'free software' it's just peachy.

      When MS does it, the tools they use to put people out of work with are hidden behind a wall of EULAs, patents and lawyers. When "college kids" (or professionals working in their spare time, or professionals working for a company such as IBM) do it, they release the product out into the community, where other people who are working are free to pick up on the source and either charge to customise it, or charge for support it. Of course, if that 'free software' is under the GNU License, it's perfectly ok to sell it.

      So, to summarise; when MS puts people out of work with their products, only they benefit. When "free software" does it, the entire computing community benefits, as does the economy (eg, people working for Sun, IBM, Novell who work on OSS projects).
    5. Re:Ok, here is where I object: by kpansky · · Score: 5, Funny

      ASPs... very dangerous..... You go first.

      --

      --Kevin
    6. Re:Ok, here is where I object: by robertjw · · Score: 5, Insightful

      Shallow labor pool == expensive labor pool

      Sure, but I can pay more for a developer when I'm saving money in license fees.

    7. Re:Ok, here is where I object: by Bedouin+X · · Score: 5, Informative

      I understand licensing issues but they just aren't as big a deal in ASP.NET as these posts (and the article) are making it out. To use ASP.NET you need a license for the server and that's it. Most add-on components are the same. There is also so much ASP.NET sample code out there that there isn't a lot that you can't figure out for free using the same methods that you would use for PHP code.

      Licensing issues get a little more complex when dealing with database servers and the like, but using Oracle isn't going to change that and it's not like you can't use MySQL with ASP.NET.

      I'm all for the advantages of OSS and PHP does have advantages, but let's not cloud the issue unnecessarily.

      --
      Dissolve... Resolve... Evolve...
    8. Re:Ok, here is where I object: by robertjw · · Score: 3, Insightful

      understand licensing issues but they just aren't as big a deal in ASP.NET as these posts (and the article) are making it out.

      That's all a matter of perspective I suppose. So I only need one license per server for ASP.NET and one license per server for any add-on components I want to use. So in a year I want to add another server, I have to upgrade both to get the same version of ASP.NET. A few months after I want to upgrade a add-on component, I have to upgrade ASP.NET and any other add-on compnents I have licenses for.

      Licensing may not seem like a big deal, but it can quickly spiral out of control. Personally I have grown to HATE license agreements and will not purchase a product if an OSS is available.

    9. Re:Ok, here is where I object: by Knuckles · · Score: 2, Insightful

      And while you're at it, do away with this "automobiles". My horse carriage business does badly

      --
      "When I first heard Daydream Nation it quite frankly scared the living shit out of me." -- Matthew Stearns
    10. Re:Ok, here is where I object: by ron_ivi · · Score: 4, Insightful
      if you have an opening for a PHP dude, you are going to get a trickling of resumes,

      Quantity of resumes shouldn't be your top concern.

      One manager I know looks for BOTH Python _AND_ C# skills of his developers because he says this pre-qualifies candidates for people with enough of an interest in computer science to understand recent technologies.

      but an ASP/ASP.net dude, you're gonna get a boatful.

      Just because I can find lots of people with McDonalds experience, doesn't mean my restaraunt should specialize in fries and burgers.

    11. Re:Ok, here is where I object: by mingot · · Score: 4, Informative

      That's all a matter of perspective I suppose. So I only need one license per server for ASP.NET and one license per server for any add-on components I want to use.

      No. You only need a license for the server itself. If you have a licensed installation of whatever running you can install ASP.NET. No need to purchase a license. Your developers can all install ASP.NET on their personal machines. No need to have anything but an OS to install it on.

    12. Re:Ok, here is where I object: by AstroDrabb · · Score: 2, Informative

      He is talking about ASP. Last time I checked ASP had no System.Graphics namespace. ASP.Net does, but not ASP. ASP pretty much sucks and requires you to write or buy code to supplement it. ASP.Net _finally_ has an acceptable framework, though it is still proprietary and will lock you into MS only solutions.

      --
      If Tyranny and Oppression come to this land,
      it will be in the guise of fighting a foreign enemy. -James Madison
    13. Re:Ok, here is where I object: by AstroDrabb · · Score: 3, Insightful

      I don't think that is what he is trying to say. For example, say I have 5 Win 2000 servers running IIS/Asp.Net ver x.y.z. Down the road I need to add a new server and Win 2000 server is no longer available only Win 2003 server. Now I have 6 servers with one odd ball. I cannot take advantage of the new features on the newest IIS/Asp.net versions on the Win 2003 server without apps not working on the 5 Win 2000 servers. So I can either upgrade all 5 Win 2000 servers or not take advantage of the newer features on the Win 2003 server that I paid for. With OSS such as Apache, PHP and Tomcat, I don't need to pay to upgrade my server to get the latest features out of the _apps_ I want to run. I can grab the latest Apache, PHP or Tomcat and just install it. My server OS can last years longer then your average MS Winodws server by allowing me to upgrade the _applications_. MS ties or "integrates" their products in for a reason. They want that upgrade money. For example, you cannot get the "latest and greatest" IIS from MS for Win 2000 server, you need to upgrade your freaking OS just to get a new web server!. Talk about tie-in.

      --
      If Tyranny and Oppression come to this land,
      it will be in the guise of fighting a foreign enemy. -James Madison
    14. Re:Ok, here is where I object: by Eythian · · Score: 2, Insightful

      Knowing both Python and C# says nothing about computer science ability. Knowing Smalltalk, Haskell and Prolog says a whole lot more. Knowing Python and C# says that you are a programmer who is keeping up with things, nothing to do with computer science. (In the sense that an astronomer doesn't necessarily know much about crafting telescope lenses)

      I'm currently doing my masters in CS, and don't know Python or C#, however I like to think I have an interest in it :) I tend to use Perl and Java for outright programming. However, I know that I could sit down and become competent in the others in a few days of learning, because I have covered many other languages, so learning a new one is no problem.

  3. It's Visual Studio, not the languages! by Cavio · · Score: 5, Insightful

    As a former PHP hacker now forced by the corporate world to program in ASP.NET, the article is forgetting the number one advantage ASP has over PHP. A killer IDE.

    I really dislike ASP and Visual Studio, but PHBs tend to like pointly clicky interfaces. It makes them feel like if they have to fire the whole development staff, they can take over coding; after all, it is just a GUI.

    Visual Studio is Microsoft's real killer app. That is what Monkey Boy was dancing around screaming developers about. Most developers are mediocre, and if you give them a handholding tool that keeps them from doing anything too stupid (or too great), they will love you for giving them some job security.

    Alright PHP guys, can you give us that? Can you save us from having to think for ourselves? I may have filled my last remaining unallocated brain cells reading the man page for gcc.

    --

    Please bid on this Karmann Ghia! Please pleas

    1. Re:It's Visual Studio, not the languages! by jcrash · · Score: 5, Insightful

      Yes, this is where Microsoft scores time and time again.

      I code ASP (always) and ASP.NET (sometimes) in textpad - but the PHB's love the VS interface and the weaker developers have no idea how to code without it.

      Similarly, SQL Server has grown to where it is not because it performs better, but because developers and DBA's have a built-in interface in Enterprise Manager and i-SQL (now query analyzer). Oracle never understood the need to release a complete product. Managing an Oracle database - shoot even coding in one - is like night and day compared to SQL Server.

      --
      I do not fear computers. I fear the lack of them. Isaac Asimov (1920 - 1992)
    2. Re:It's Visual Studio, not the languages! by iamdrscience · · Score: 2, Insightful

      I'd say Zend Studio fits that position pretty well. Yes, you have to pay for it ($250), but you have to pay for Visual Studio as well.

    3. Re:It's Visual Studio, not the languages! by angst7 · · Score: 5, Informative

      I've been using Zend Studio for about a year and a half now, and it's a great IDE for doing PHP stuff. It has code completetion, a nice debugger, good integrated documentation, and a host of other nice features. I run it on both my Windows and Linux boxen, and I absolutely love it.

      --
      StrategyTalk.com, PC Game Forums
    4. Re:It's Visual Studio, not the languages! by bloggins02 · · Score: 4, Insightful

      I agree with you that Visual Studio is a killer app, but you seem to think that it somehow "keeps you from doing anything too stupid (or great)." The last time I check, Visual Studio doesn't "keep you" from doing anything.

      Especially in VS.NET, almost everything is in a human readable (editable!) source file or XML document, they warn you not to change stuff, but that's just a CYA for tech support. People can, and do, change VS generated code all the time, and since they've made it pretty easy to do, it works almost all of the time.

      The open source world needs to realize that MS has them absolutely beat in the form of developer tools. Just because I know how to code in x86 assembly and twiddle bits to make arcance hardware work (been there, done that), doesn't mean I don't REALLY enjoy intellisense and auto-generated XML documentation.

      "Real" programmers like good developer tools, too. That's one reason why I like Mono. I get to code in VS/SharpDevelop and copy the dlls over to Linux to run it. I will continue to do so until someone makes an IDE on Linux that compares to Visual Studio (and no, Eclipse is not that IDE, especially for non-Java projects). Who knows, maybe I'll even develop it, if I can find the time that is :)

    5. Re:It's Visual Studio, not the languages! by Jetifi · · Score: 2, Insightful

      If you want to build an IDE for PHP, you could do worse than build something on top of Eclipse. It's not just a Java tool, it's been done for Python, and the plugin architecture is pretty sweet.

    6. Re:It's Visual Studio, not the languages! by phazethru · · Score: 4, Insightful
      Beyond the IDE is also the documentation. I've been a PHP programmer for a while now becuase it was free and easy enough to use. But when first starting out, I was floored by how good the manual on the PHP site is. User comments, example code, etc. And it's not only that these existed, but that it was all in one place and easy to find.

      I have written personal sites, shopping carts, and some basic management software, and I have never needed to go beyond that manual for help.

      I'm willing to learn ASP in my free time (can never hurt to have things on the resume) but is there a comparable site? Or will I have to go back to swimming through the various how-to's on computer sites?

      --
      "I am the Black Mage! I casts the spells that makes the peoples fall down!" ~8BT
    7. Re:It's Visual Studio, not the languages! by Malc · · Score: 2, Informative

      MSDN. Well, if you don't have access the CD/DVD that comes out twice a year then there's always Microsoft's website.

      For community support, the Usenet is very good. Microsoft have a lot of groups on their servers (msnews.microsoft.com, or something like that), or you can use groups.google.com (microsoft.public.x.x.x), but that's a vastly inferior interface.

    8. Re:It's Visual Studio, not the languages! by Ollierose · · Score: 3, Informative

      as far as ASP.Net is concerned, I'd recommend www.asp.net as a starter site, along with w3schools' asp.net section for a reference/overview.

      I'll add another namedrop for MSDN though, and point you to the .net Class Library reference

    9. Re:It's Visual Studio, not the languages! by stgermh · · Score: 2, Informative

      There have been PHP plugins available for Eclipse for a while now. I have used TruStudio which is decent. Also check EclipsePlugins.

    10. Re:It's Visual Studio, not the languages! by stgermh · · Score: 2, Informative

      If you're just doing ASP.NET and want a free IDE, Microsoft has WebMatrix.

    11. Re:It's Visual Studio, not the languages! by MobyDisk · · Score: 2, Insightful

      I have a theory: Once at least 10% of the people touting the ASP.NET GUI actually use it, the reviews won't be so good. The GUI looks good, demos well, but in actual use it is very inefficient. I thought that the idea of GUI design of HTML pages and separate code-behind files was the most revolutionary thing I ever saw in web development. Until I used it.

      I believe that the VB-style property page GUI is a fad for quick & dirty development, but it won't extend well into larger systems. For example, try changing 1 property on 10 text boxes. You must click each text box, then click on the property page, scroll down to the proper value, click on it, highlight the existing contents, then change it. It's terribly inefficient.

      The design of property pages doesn't allow for multiselect like most controls in other IDEs. The reliance on switching between mouse for navigation and keyboard for data entry is terrible. So the advanced coder goes to the HTML view to do a search and replace, but then finds another suite of problems. When you switch from the HTML view to CODE view (or vice-versa):

      1) You lose undo history.
      2) The entire HTML is reformatted.
      - Much CSS is thrown out, units are changed
      - Good HTML changes to IE-specific HTML
      3) If any tags are not closed, the IDE deletes everything following the tag then closes it. This causes lots of problems when combined with #1.

      Some of these issues can be fixed, but the propery page paradigm is intrinsic to Microsoft products.

    12. Re:It's Visual Studio, not the languages! by dirty · · Score: 2, Informative

      Something like PHPEclipse?

      --

      -matt
    13. Re:It's Visual Studio, not the languages! by Vaginal+Discharge · · Score: 5, Insightful

      I agree that VS.NET is a great killer app. But I don't buy that it's only for PHB or weaker developers. The one thing great about it is increased productivity, where it takes care most of the mundane details where you can just focus on the problem itself. No matter how great a programmer you are, if you don't use an IDE to increase productivity, then you're just plain missing the point.

      I don't for a moment believe that writing all your code using 'cat' means that you're better than everyone else.

      --
      "Glory is fleeting but obscurity is forever" - Napoleon Bonapart.
    14. Re:It's Visual Studio, not the languages! by XO · · Score: 3, Insightful

      My one complaint about all the documentation, is that so many things have changed across so many versions of PHP, that often the User Comments on things no longer apply.

      My biggest complaint about PHP is that there's no coherent structure for function names, or order of function arguments.

      some functions are named like
      verb_noun(input1, input2, input3, outputvar)

      some return their output, some modify the variable sent to it..

      others are named like
      noun_verb(outputvar, input1, input2, input3)

      seems like i always have to look up the arguments to virtually every function after i go a few weeks without coding anything

      --
      "Champagne for my real friends - and real pain for my sham friends!" http://ericblade.postalboard.com/
    15. Re:It's Visual Studio, not the languages! by Slime-dogg · · Score: 2, Interesting

      My company shells out for VS.NET and SQL Server. I initially tried to sway them away from this, mostly because I know that I can handle the administration of Linux based stuff, but my boss had other ideas, and we have an MCSE network admin now.

      Anyway, I have to say that VS.NET is fantastic. Not only is the integrated debugging a godsend, SQL Server integrates well into VS.NET. I can debug stored procedures from within VS.NET, something that I haven't experienced anywhere else. I can also directly edit the database from within the development environment.

      Just recently, I realized that I wanted to add a bit field to a table. With VS.NET, I just right click on the table in the "Data Connections" explorer, and click on "Edit." Then I just go to the data code and classes and add the boolean. I also would have to modify the stored procedures, which is just a matter of double clicking in the "Data Connections" explorer.

      If I didn't have VS.NET, I'd have to open Enterprise manager, and do all of the changes there, or just type the SQL into Query Analyzer. I have no problem doing the straight SQL method, but it's not as fast as working with VS.Net. If I want to verify that it works, without VS.Net, I'd have to do a lot of testing SQL in the Analyzer.

      The article doesn't go in-depth about the ways you can optimize ASP.NET. They thoughfully skip over ASP.NET's page caching, and they also seem to leave out the fact that an ASP.NET page gets compiled to machine code on it's first execution, and is optimized by the JIT compiler. The "long code" that they refer to isn't really that long in the end.

      Another huge issue is the "platform." Mono serves as a cross-architecture platform for .NET, including ASP.NET. You can connect to a multitude of databases with Mono as well. ASP.NET is not limited to IIS, nor is it limited to Win32. IIS is also not required for ASP.NET to work, as they do note, but they fail to mention that it's incredibly easy to write an ASP.NET web server with .NET (look at Cassini, which is limited but functional).

      --
      You need to restart your computer. Hold down the Power button for several seconds or press the Restart button.
    16. Re:It's Visual Studio, not the languages! by nuggetboy · · Score: 2, Interesting

      Don't mistake the design faults of this version to be "VB-style" properties being a fad. Indeed, there are some issues with the design and UI, some quite glaring. However, the property page paradigm is quite useful. They just need to get it right, your multi-property example being good. Also, your numbered points are all pretty much rooted in the core flaw with "round-trip" HTML editing that has been present since v2002. [asbestosSuit] As I understand it, this is to be fixed in the upcoming release. [/asbestosSuit] Granted, if they let this one slip by again, I think you'll see a mass exodus of web developers from the product.

    17. Re:It's Visual Studio, not the languages! by jcrash · · Score: 2, Insightful

      Notice I said sometimes. Point being, if needed, I can. The problem with the VS Suite is not that it is bad, it is that it makes it too easy to do bad things. Coding with it is definitely superior to coding without it - but a lot of people coding without have no idea of how to do something without it. This means they repeatedly do the same thing over and over again instead of writing common objects that will do those things for them. Personally, intellisense is awesome - but knowing how to go into the page_load event and dynamically create all the fields I need on my forms allows me to write one set of code that will edit all my tables. If I had learned on VS, I don't know if I would've taken that approach. Which would leave me with 100+ pages used to edit 100+ tables across 10 different systems instead of one page that edits them all. Microsoft's IDE is very nice - .NET is very Nice - the reason Microsoft's product's do well, though has more to do with making the middle of the road developer more comfortable. There is nothing wrong with that. If Oracle had done it, they wouldn't be falling by the wayside like they have been over the last 10 years.

      --
      I do not fear computers. I fear the lack of them. Isaac Asimov (1920 - 1992)
    18. Re:It's Visual Studio, not the languages! by Skim123 · · Score: 2, Interesting
      For example, try changing 1 property on 10 text boxes. You must click each text box, then click on the property page, scroll down to the proper value, click on it, highlight the existing contents, then change it. It's terribly inefficient.

      Actually, if you are changing a property that is common to all selected controls, such as the BackColor, you can select multiple controls, and the Properties window will display just those properties that are common to the selected controls. At least you can do this in VS.NET 2003.

      I agree that the code-behind model leaves a lot to be desired. It is a hack, really, and despite the fact that MS has touted it as a clean separation of code and content, it's there solely because they could not get VS.NET to work any other way. With Visual Studio 2005 and ASP.NET 2.0, the code-behind model, while still available, will likely be left behind for the code-beside approach.

      You can read more about code-behind's hackiness at this blog entry. There's also a good blog entry on the same topic by Andy Smith.

      --

      I could not justify my existence if I were a turkey farmer. Would I terminate myself? Undoubtably, yes.

  4. This says it all by d_jedi · · Score: 5, Insightful

    In this article I'll focus on PHP, the technology Oracle has chosen to incorporate into its products, and ASP.NET.

    Yup, I expected a completely unbiased article after reading this in the second paragraph..

    --
    I am the maverick of Slashdot
    1. Re:This says it all by Anonymous Coward · · Score: 4, Insightful

      This articles is all wrong. You cannot even compare PHP and ASP.NET. PHP is a simple document embedded code web framework. ASP.NET is a component oriented web framework. ASP.NET is light years ahead of PHP in technology.

      The article side steps the most powerful aspects of ASP.NET.

      1.) Component driven - All the power of OOP vs PHPs OOP which is just an after thought
      2.) Event driven - Everyone who has used VB/Delphi/C++ Builder knows what a time saver this paradigm is.
      3.) Browser abstraction
      4.) Unified coding model. No more fiddling with half the code in JavaScript and half on whatever you use on server side.
      5.) Complex, yet simple. ASP.NET does a LOT, yet is as easy as one can imagine. A RAD developer can pick the general application model up in a day. This is a sign of good engineering.

      I have respect for PHP. I dumped classic ASP immediately after I came across PHP. PHP has it's advatanges but it is a simple and primitive framework by current technology standards. There is Java Server Faces which is open and will do everything ASP.NET can soon. But from what I know about Java programmers, they tend to complicate things unnecessarily applying every engineering principle EVERYWHERE. I tried Mono. It worked perfectly fine for everything I tried but I still feel a bit of uneasiness with XSP. I must give mod_mono a whirl.

    2. Re:This says it all by space_man51 · · Score: 2, Interesting

      The article was biased in that it compared ASP.NET with PHP in the areas that PHP is designed and works for. But the article was correct that for the things PHP is used for, it is definitely the better choice.

      And the one thing that PHP does have over ASP, as the article mentions, is cross-platform and cross-server compatibility. Plus no complex licensing and being open-source helps.

      Also, since HTTP is a stateless protocol, I would consider a client-side solution if the application is so complex it requires an event-driven interface.

      I would recommend reading about the upcomming Perl 6, which amongst other things has a complete Object Oriented design.

      --
      Anton Markov
      *** Linux - May the source be with you! ***
    3. Re:This says it all by EllisDees · · Score: 5, Interesting

      >4.) Unified coding model. No more fiddling with half the code in JavaScript and half on whatever you use on server side.

      I call complete Bullshit on that comment. I use ASP.net on a daily basis, and if you want to do anything - and I mean *anything* - outside of the little tool box Microsoft has given you, you will have to use javascript on the client side and various tricks on the server side.

      --
      -- Give me ambiguity or give me something else!
    4. Re:This says it all by hobbit125 · · Score: 2, Insightful

      1) This article is about PHP5. You might want to take a look at PHP5's OOP before you make yourself look like an idiot. PHP5's OOP offers everything and then some that .NET does.

      2) Event driven architecture for a server side language is silly. That's why ASP.NET's is such a hack with the giant postback hidden form element and the entire viewstate being persisted. It makes debugging all kinds of fun. no thanks.

      3) Browser abstraction only if you stick to using the server controls and having your page postback and refresh every time the user interacts with it. Again...no thanks.

      4) No unified coding model, (again unless you want the refresh...) there's no magic here. you want client side code, you still have to write client side code. There's a few canned controls for you with client-side code...many of which are (suprise) not browser agnostic.

      5) More like "complex yet complex." .NET is an extremely verbose language almost on par with Java. The cludgy postback model that comes with the ASP stuff only makes it even uglier. I dare you to come up with an ASP.NET solution that would contain less code and be architecurally simpler and more elegant than a PHP equivalent.

      As to "any RAD developer can use it...":

      If I'm looking for a web developer, I generally don't hire a VB lackey. I hire a web developer. (And yes, it is fair for me to assume VB...it has over 90% of the RAD market.)

      And I wouldn't be tearing on Java when you seem to be such a fan of it's MS rip-off. At least Java and PHP have a real developer community instead of a fake manufactured one that has grown up on proprietary software and hence won't share code or release anything to the community for the sake of the common good.

  5. Taking the world by Karamchand · · Score: 3, Informative

    Also read this interesting article about PHP trying to take over the world. While a bit long it's really interesting and spawn quite insightful discussions.

  6. Update? by Chuck+Bucket · · Score: 4, Interesting

    This makes complete sense, looking at how PHP has taken so much of the bloat out of server side scripts compared to ASPs megahousal approach. Add in the fact that PHP is free/open and continuously developed, it could be a no brainer; if the market(ing?) allows for it!

    How does one update from PHP4.x to PHP5.0? I'm running Drupal/Squirrelmail and the like at home, and want to see the diffs between the two, as well as understanding how to update them.

    PCB$#

  7. Another article by jacoplane · · Score: 5, Informative

    There was an article detailing the zend release on kuro5hin a few days ago. Quite a good read...

  8. Sorry no by Anonymous Coward · · Score: 3, Insightful

    I use php all the time, but php is more like the old asp than .Net. .Net is much richer in exeception handing and allows me to use any language I want. Php is great but not a stab at the heart of .Net. They have nothing like VStudio.

    1. Re:Sorry no by mrtroy · · Score: 2, Informative


      I use php all the time, but php is more like the old asp than .Net. .Net is much richer in exeception handing and allows me to use any language I want. Php is great but not a stab at the heart of .Net. They have nothing like VStudio.

      Quote from article:

      PHP 5's major new achievements come in the area of its exception handling and a new object that introduces features that bring true OOP to PHP

      And my opinion added on: You do not need to use something like VStudio for anything smaller than enterprise sized ASP.net or PHP development. Textpad is more than adequate. I really dont see what u will gain by using some huge IDE for personal development.



      --
      [I can picture a world without war, without hate. I can picture us attacking that world, because they'd never expect it]
  9. Re:Story Time by Saeed+al-Sahaf · · Score: 4, Insightful
    The guy who they hired was a Korean exchange student, who I happen to think was a great choice for the job...

    Than why do you bring it up?

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  10. MS vendor lock-in bad, Oracle lock-in good by MaxQuordlepleen · · Score: 3, Insightful

    From the article:

    But, as Tom Kyte points out in his latest book, Effective Oracle by Design (Oracle Press), database dependence should be your real goal because you maximize your investment in that technology. If you make generic access to Oracle, whether through ODBC or Perl's DBI library, you'll miss out on features other databases don't have. What's more, optimizing queries is different in each database.

    I've heard this same song from a few developers who work at Oracle shops - and I could not disagree more! Database independence in your code should absolutely be a goal! We can encapsulate our database-specific features into stored procedures or functions without having to pollute our application code with them.

  11. After reading the FA ... by cablepokerface · · Score: 5, Interesting

    ... I had to conclude the writer barely knows what he is talking about. I am not flaming him, but someone who mentions only the ODBC drivers for ASP.NET and has never even heard about a Managed Provider, additionally puts this in a summary table:
    Speed:
    PHP4: strong PHP5: strong ASP.NET: weak
    Efficiency:
    PHP4: strong PHP5: strong ASP.NET: weak
    has some serious reading to do ...

    1. Re:After reading the FA ... by stratjakt · · Score: 5, Insightful

      Well, seeing as how this "interesting article", as the submitter calls it, is hosted on Oracle's site, you'd think the cynics here at slashdot would instantly recognize it as the typical marketing horseshit you'd find on any corporate page.

      Yeah, according to Oracle, Oracle+PHP5 (and oracle specific application development) is the bomb-diggity, ASP.Net and SQL Server are teh suck. I'm sure MSFT would tell you the opposite.

      This "article" has as much credibility as the MS-published Windows v. Linux TCO studies.

      But - of course - marketing horseshit is Gospel here at slashdot, just so long as it says MS sucks.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:After reading the FA ... by iwhittle · · Score: 2, Insightful

      I could not agree more, this guy basically goes out of his way to mention the fact that ASP.NET has a heavier object model and will thus use more memory without addressing at all the point of this model.

      ASP.NET is a very different way of programming a web application that has significant advantages over many of the other platforms that exist. A ton of the work and overhead that goes into writing validation functions and other "plumbing" code in other web application frameworks is already done in ASP.NET. Also, the fact that form controls are created by objects means that you can easily create standardized controls that inherit from the built in WebForm objects and are customized for your application. Basically with ASP.NET it becomes much easier to encapsulate and reuse the code that you write for web presentation, which is certainly a good thing.

      Having not worked much in PHP, I cannot say anything bad about it and have heard very good things about working in it. That being said, it just seems like criticizing ASP.NET for being slow due to its heavier object model is missing the whole point.

      Of course I am not that surprised since is article is written by Oracle, and they spend significant time in it going on about how DB Vender Lock-in is a good thing. I think that shows where this authors motivations lie.

  12. Microsoft's default .NET programming language by dalleboy · · Score: 5, Insightful

    The article states that Visual Basic .NET is Microsoft's default .NET programming language. I've always thought it was C#, because VB.NET lacks some of the features in C#.

  13. While PHP is nice... by Mr.Fork · · Score: 2, Insightful

    I'll stick to my vanilla ASP coffee thanks. It's the old betamax/vhs story. Yes, PHP is better. Yes, it's free and easy to code. But most businesses tend to stick with micro$oft not because they want to, but because .net is designed to work with mssql and ie a lot better. . I want my betamax back... :)

    --
    Management is doing things right; leadership is doing the right things. - Peter F. Drucker
    1. Re:While PHP is nice... by nabil_IQ · · Score: 2, Funny

      why not just get a DVD (Java/J2EE) ?

      --

      Won't somebody please think of the Karma!
  14. Databases, Platforms, my opinions on using ASP.Net by Ollierose · · Score: 3, Interesting

    I liked the way the article talked about ODBC being a downside, then showed sample code which used ADO.Net with the native OracleClient instead.

    Apart from that, the main differences between ASP.Net and PHP5 appear to be platform related, rather than anything to do with the respective languages (or processors, if you prefer).

    Don't forget some of us actually like a little bondage from the toolkit, so we can maintain the code afterwards. Its nice to have all the page manipulation code in page_load() where you can happily mangle everything using syntax similar to the XML DOM, rather than having chunks of code all over the place to insert the various dynamic elements.

  15. Performance Claims by DJ-Dodger · · Score: 5, Insightful

    Why do people think they can write these sort of articles and make performance claims in them without any sort of supporting evidence? Some quick numbers? A link to a study? Anything?

    1. Re:Performance Claims by Chester+K · · Score: 2, Interesting

      and make performance claims in them without any sort of supporting evidence?

      I thought it was particularly laughable that they just do some handwaving and declare ASP.NET slower than PHP because "there is a lot more code to run through to execute the same ASP page than ... an equivalent PHP page".

      It's total bullshit.

      ASP.NET JITs to native code. The extra baggage of the extent of the ASP.NET Framework has zero performance penalty after the initial compilation stage. PHP is interpreted, every request unless you buy their commercial solution, which gives PHP the "$$" they lovingly placed under "Platform Price" for ASP.NET.

      They also take the easy potshots at IIS as a security weakness (IIS6, a rewrite of IIS which has been out and in production for well over a year, has zero security vulnerabilities); and they just poo-poo the fact that Mono/Apache runs ASP.NET just as well, if not better, than Windows/IIS.

      --

      NO CARRIER
    2. Re:Performance Claims by myspys · · Score: 2, Informative

      commercial as in free?

      http://www.php-accelerator.co.uk/

      yeah, it's not available for php5, yet

    3. Re:Performance Claims by nahdude812 · · Score: 2, Informative

      Or you use the freely available Turck MM Cache which has similar or better performance compared to the commercial Zend engine, and provides memory resident caching besides just storing post-compile scripts.

  16. PHP vs. ASP by iamdrscience · · Score: 5, Insightful

    For me, the choice is clear. You can compare the relatively minor pros and cons of PHP and ASP for days, but really they're both very similarly capable and you'd do about as well with one as with the other. The big difference I see is that PHP is cross platform and ASP is not. To me, that makes PHP the "winner", hands down. It makes it so that you can change platforms with your application later on and if you're writing code for other people to run then it means more people will have the opportunity to use it (whether this is an open source project or a commercial project you're doing).

    ASP runs on Windows and really only runs well with IIS. PHP runs on pretty much any platform you would ever want to run it on (and plenty of platforms you wouldn't) and works just as well with any webserver I've ever considered using.

    So while there may be small areas where ASP excels or where PHP is deficient, I think that those points are largely insignificant when you realize the platform limitations of ASP. Oddly enough though, I'm not sure I've ever heard anyone cite this as an advantage of PHP, whereas I come across an article comparing esoteric differences every few weeks.

    1. Re:PHP vs. ASP by Ollierose · · Score: 2, Insightful

      Where would you put Mono or Rotor (the BSD one?) in your global pool of cross-platform solutions? Theoretically (because I've not found anyone willing to actually try it, the solutions offered are all on IIS 6) you could offer a large hosting system run on apache + mono + mySQL in the same way you would now offer apache + php + mySQL solutions.

      Granted, its not the officially supported path, but MS wouldn't support anything other than IIS anyway.

  17. FUD? by Banshee99 · · Score: 5, Insightful

    Looks like this article is full of it. Slow .NET code? ASP.NET can be compiled into DLLs, and at my old job we upgraded many of our ASP and PHP projects to .NET with a large speed increase. Only works on IIS? Try out the mono project.

    Also seems like everyone is complaining about ASP. ASP and ASP.NET are two completely different beasts. ASP was buggy and a pain in the rear to work with. ASP.NET, however, was amazingly simple to use with an amazing debugger (VS.NET). Please keep on the subject and leave out ASP.

  18. Object Oriented Scripting?! by Desult · · Score: 4, Interesting

    I do C# development, for ASP.NET, where I work. I do php development (hacking phpbb), for my personal website.

    For large scale projects (e.g. a messageboard), I would greatly prefer to use C# over ASP.NET... I strongly dislike IIS, and I suppose that's a stumbling block, but on the other hand, C# is a strongly typed, compilable language. I'm not clear on how all the benefits of scripting (faster output from looser coding) apply to large scale projects, or projects where things like OOP and Exception handling are useful.

    OOP and Exceptions rely on, you know, strong, well concieved design. If you're going to take the time to design your large project, why the hell would you throw away the benefits of strong types and compile time debugging (incredibly useful in a large and/or shared project), not to mention things like unit testing and automatic documentation (things C# has).

    The code example in the article makes little sense to me. For one, they use VB... which looks ugly no matter how you slice it. C# would have been more directly comparable, and it should be available in MSDN... but regardless, the code looks almost identical. Is the point that there really is little difference, or that PHP is better? In both languages, it seems you could abstract away the Oracleness of the behavior (negative on both fronts), and you'd be at square one regardless.

    Eh, I don't see any real useful comparison in this article. Yes, it sucks that ASP.NET only works with IIS. I'll be happy to run mono when the opportunity presents itself. But this article was pretty useless.

    --
    -Greg
    1. Re:Object Oriented Scripting?! by Rucker · · Score: 2, Informative
      ... I would greatly prefer to use C# over ASP.NET...

      You realize you can do ASP.NET in C#, right?
      From Microsoft's "Getting Started: Web Applications Technology Map":
      ASP.NET makes full use of the .NET Framework... using any .NET-compatible language, including Visual Basic® .NET, C#, and JScript® .NET.
      --
      Rucker
  19. Visual Studio .Net by SpiffyMarc · · Score: 2, Insightful

    I'm sorry, but ASP brings Visual Studio .Net with it to the party, and, well, it always manages to get in my pants.

    Until any of these other solutions can offer me an IDE as advanced as Visual Studio .Net, instead of being one version behind attempting to copy it and feeling "not quite right" in their attempts, I'll stick with my .Net-based solutions.

  20. ASP.NET inaccuracies by Burb · · Score: 5, Informative
    A few comments from an ASP.NET user:

    The article implies that CLR code is interpreted. All .NET runs compiled code, either JIT or AOT compiled. And there's an unsubstantiated remark about efficiency and "Long code paths". That looks like FUD to me, and without something substantial it seems suspicious.

    --

  21. Re:PHP 5.0 Goes For Microsoft's ASP-dot-Net by superpulpsicle · · Score: 4, Interesting

    Seriously this is probably priority 100 on his list. ASP already has had such a long foothold on server side scripting that it'd take a lot to convince existing pages to change over to PHP.

  22. Evidence? by metasyntactic · · Score: 3, Insightful

    I found the article quite interesting, but lacking in supporting evidence for many claims. Specifically, he states that on both speed and efficiency (not quite sure the difference, but I'm guessing that he's referring to memory usage for the latter) ASP.NET is weak. I'd be interested to see comparisons showing the difference between equivalent sites written with PHP5 and ASP.NET to see the difference.

    Also, he mentions (a few times) about IIS insecurities (at posts a link to bugtraq), however I'm unable to check since the site seems to be crawling. How does PHP5+Apache's security record compare to ASP.NET+IIS6?

    -- Cyrus (http://blogs.msdn.com/cyrusn)

  23. PHP drawback? by The_Real_Nire · · Score: 4, Insightful

    Another weakness is that PHP's function names are case insensitive. Some programmers might find this feature annoying, though this isn't a serious drawback.

    How is this a drawback at all?
    In my opinion, it prevents programmers from perhaps accidentally naming their own functions the same as a built-in, which is a good thing since there are so many, its useful to know as many as possible. However "annoying" this maybe to some people, its actually a good idea.

  24. Re:Story Time by azaris · · Score: 4, Insightful

    I worked as the web admin to my student association when I was in college, and a job opening came up to redesign the programmers site, bringing online a bunch of new tools for students of that department. This was basically a summer job, and they had interviews where myself and four other students made it through the selection process to the final interview.

    [...]

    Did they ever get screwed. The guy who they hired was a Korean exchange student, who I happen to think was a great choice for the job, but the problems started cropping up with the ASP code. It was buggy as hell. The system took all summer to code out the object oriented code, and it was never opened because it was never quite good enough.

    [...]

    In my opinion, this was not the fault of the guy they hired at all, it's just that ASP takes a lot more time to get together than PHP. You can "know what you're doing" all you want, but when your boss wants you to make changes to core behaviours, there is nothing faster or more efficient than PHP for handling anything web related. It's just easier to whip together any site with any behaviour and get it working and stable.

    Why isn't there a "-1, Jumping to conclusions" moderation option on Slashdot? Let's reiterate. This was a student body, hiring a student for the summer to hack some website, alone I might add. And the fact that it all went miserably wrong is supposed to imply that the Microsoft ASP platform is fundamentally flawed and everything would have magically worked with PHP?

  25. lies lies and more untruths by pc-0x90 · · Score: 5, Interesting

    I do a substantial amount of ASP.Net coding and they seemed to just give a weak gloss over the actual technology they were comparing here. First, IIS & Win32 are *not* the only places where you can run ASP.Net. The mono project is getting better and better fairly quickly. This is mentioned briefly in their "security" section.. which is also a load of crap. Price: PHP has a habit of becoming very perl-esque over time because of the language. Maybe 5 changes this, but I doubt it's enforced. So an IDE that's going to clean your code vs. cost in man-hours spent debugging some "super efficient php code" (read: "looks like perl") bleh.. I'll take the IDE The database code samples *Don't do the same thing* .. but they DO show the people who wrote the article don't know ASP.Net, because they're using the old and insecure form of database connections as opposed to parameterized queries. Nice to know that both sides of the fence are as equally capable of FUD.

  26. We use Apache exclusively ..... by ajs318 · · Score: 4, Funny

    ..... so we have no ASPs, but plenty of Pythons!

    --
    Je fume. Tu fumes. Nous fûmes!
  27. Meinel by Scoria · · Score: 2, Informative

    This Web site is actually managed by the infamous Carolyn Meinel, whose tendency to sensationalize is well documented. YMMV.

    --
    Do you like German cars?
  28. PHP 5.0 by Orion+Blastar · · Score: 2, Insightful

    it would be great if they integrated with the Mono project and allowed the use of ASP.NET type tags to actually run almost the same code as ASP.NET?

    Imagine PHP based C#, VB.NET, etc.

    --
    Remember, Slashdot does not have a -1 disagree moderation, and no, troll, flamebait, and overrated are not substitutes.
  29. Quiet? by xanadu-xtroot.com · · Score: 2, Funny
    --
    I'm not a prophet or a stone-age man,
    I'm just a mortal with potential of a super man.
  30. Re:It's Visual Studio .. PHP Editor Galores! by Phiu-x · · Score: 5, Informative

    Need to find a good PHP Editor ?


    All of them (commercial,free,OSS) reviewed and classified: http://www.php-editors.com/

    My personnal (and free) favorite : PHP EDIT: http://www.waterproof.fr/

    Need a PHP Debugger? DBG can do remote debugging and it can be integrated with the PHP Edit IDE, which is very nice : http://dd.cron.ru/dbg/

    Now, who need Visual Studio? Almost every (php) editors now has code insight, integrated help, code completion, skins and whatnot. Hell, I sometimes go back to Notepad for quick fixes because its faster to fire up. But if you said PHP need an IDE, I think that you have not looked around very much.

    Now people start your eng-uh editors and go code some PHP!

    --
    This is a stolen sig.
  31. Incomplete review. by miguel · · Score: 3, Insightful


    The review states that ASP.NET only works on
    Windows, which is incorrect. Mono brings ASP.NET
    to Linux, MacOS, BSD, HP-UX, Solaris and many more.

    Mono's ASP.NET can be hosted in Apache (through the
    mod_mono module) or as a standalone server (xsp).

    The platform price is also wrong (by extension),
    Mono's ASP.NET runs on pretty much anything.

    The source code to Mono's ASP.NET is also available.

    And I have to say, am puzzled by the "Speed"
    column. If ASP.NET has something going for it
    in terms of dynamic pages is speed: they have
    all kinds of tricks:

    * page generation code is running at native speed.

    * caching is provided at the control level,
    page level, database connection level.

    And of course, there is no evidence to back any
    of the performance claims.

    I love PHP as much as the next guy, but that review
    was done by someone that did not understand ASP.NET.

    The code they posted to compare PHP vs ASP.NET
    talking to Oracle is uneven, as the rest of the
    article: in one case it shows data being rendered
    from the database, and even has a connection string.

    The other example only shows a class that wraps
    reading and writing, but does no actual job.

    A bit deceiving.

  32. Pros and Cons - Speed and Efficiency by Afty0r · · Score: 4, Interesting

    The author is miles off when he talks about the speed and efficiency of asp.net - he simply says "because there is more code and it's OO, it will take longer to run, and that slows web pages down".

    Well I would agree that on first execution of a page (the first time a page is loaded after a reboot or restart, or the document is changed) asp.net is slower than ASP or PHP - however on every SINGLE subsequent page execution asp.net is considerably faster in my experience. Programming intranets and deploying/testing them has proved it to me - when the latency across the network is tiny the difference is notable on all non-trivial pages to the HUMAN eye, and the test suite backs this up.

    Of course, code execution speed depends to a large extent on the coder and his techniques, but a good coder will be able to achieve much more rapidly responding web applications with ASP.NET than he would with Classic ASP or PHP 3 or 4. I can't talk about PHP5 because I moved exclusively to ASP.NET some time ago due it's superb libraries, saleability (clients like to hear MS and buzzwords) and the fact it's truly OO - just a personal preference.

  33. Re:Story Time by Malc · · Score: 4, Insightful

    To counter this, we have one ASP programmer in our company. He's been knocking out fairly complex database-driven web sites in ASP for us for several years. He's fast, his work is reliable and there are no complaints. What's your point?

    It sounds to me like they made a poor hiring choice, not a poor choice of technology. If you'd given them a PHP+MySQL solution, it might have worked well by itself, but how would it have fit in to the overall picture? How much extra would it have cost them in maintenance and training for their IT department supporting a new or different/additional platform?

  34. Re:It looks good by mobiGeek · · Score: 4, Insightful
    I was hoping for an OSS alternative to Visual Studio so I don't have to shell out the money.
    Then get busy; the OSS-train awaits your boarding! ;-)

    Are you saying that you are willing to dish out $$ for an MS product, but not for some other company's product?

    --

    ...Beware the IDEs of Microsoft...

  35. I try to like PHP but... by joeykiller · · Score: 2, Interesting

    It may be right that PHP5 is targetting ASP.Net, but I can't say I think PHP5 and ASP.Net will appeal to the same audiences.

    PHP shines because it's not so much a language, as it is a front end for different C libraries. This is PHP's strength, but it's also it's main weakness. It lacks a coherent object model, or even a coherent naming system for the different libraries it integrates. As such it is a mess, and difficult to learn -- though it's more feature packed than you can dream of in ASP.Net.

    Both .Net and Java are better in this way, things look and feel like ASP.Net/Java from library to library. Even Perl are better in this respect. (PHP is becoming a little bit better, with the new DB classes in Pear, but the core is still very function oriented).

    So even though I'm "born and raised" (as a web developer) in the Unix/Linux/OSS world, I can't bring myself to quite like PHP. It's a mess (but a lot of people doesn't seem to mind, so I guess the problem lies with me, not PHP).

  36. I don't trust Zend. by JessLeah · · Score: 2, Interesting

    I really can't believe I'm the only person out there who doesn't trust Zend. The Linux kernel is backed by kernel dot org, Perl is Larry Wall (an individual hacker) and his Merrye Bande of Hackers, and no one company "owns" C (contrary to what some might think re: Microsoft Visual C++ ;) ), but PHP is "owned" (read: controlled) by a commercial entity, Zend.

    What's to say PHP6 won't be released with a MS-style EULA? Do we really trust the company called Zend? Frankly, I wouldn't be at all surprised if Microsoft would start working with Zend-- much like how they have worked with those guys who made "ActivePerl"... MS likes to dip their fingers in every pie, so long as it's commercial-- and Zend is commercial.

    Again, why should we trust these guys? They're just another company out to make money, and in this day and age, this likely means that they'd get in bed with Microsoft in a heartbeat if BillG or MonkeyBoy came a-knocking. So perhaps my question should be: Will Zend sell out? (Remember: Even Sun sold out.)

    1. Re:I don't trust Zend. by Quill_28 · · Score: 2, Insightful

      > They're just another company out to make money

      Well heaven forbid if a company is actually trying to make money.

    2. Re:I don't trust Zend. by IpSo_ · · Score: 2, Insightful

      Not that any other open source project has changed their license in the past. XFree86 dot org

      If Zend decides to do something stupid with PHP, it will simply be forked.

      Zend has been around for quite a while. At least since PHP4 was released years ago, if I recall correctly. My guess is they are doing relatively well, and having a company that actually makes some money backing an open source project is a _good thing_ (tm).

      It means for the most part that the project will be pushed ahead with customers in mind, and won't die off from lack of time by the developers, or head in a completely wrong direction due to the developers growing out of touch with reality.

      There is no reason to treat every company as if they are the next Microsoft. Not every single company is evil by nature. We should be encouraging companies that actually find a way to make money off open source projects.

      --
      Open Source Time and Attendance, Job Costing a
    3. Re:I don't trust Zend. by imroy · · Score: 2, Interesting

      Perhaps just as important as the licensing issue is that of performance. Zend makes (or made, not sure now with PHP5) a PHP compiler and optimizer. Just buy the Zend product and make your PHP site faster and more efficient! But what about the free version? Would they cripple the performance of the free version just to sell more copies of the compiler/optimizer? Perhaps not. But I wouldn't be surprised to find them simply neglecting peformance problems in the free version.

      I'll stick with Perl, thankyouverymuch. Python's looking interesting as well...

    4. Re:I don't trust Zend. by kris · · Score: 3, Informative

      PHP5 is available under the PHP license, version 3.0: http://www.opensource.org/licenses/php.php. This is a variant of the Apache license 1.1: http://www.opensource.org/licenses/apachepl.php. The Zend engine license 2.0 also is a variant of this license.

      I can't see why this is a problem for you - is the Apache license also problematic for you?

      The Apache license and the PHP/Zend licenses are incompatible with the GPL, but they do qualify as free licenses under the DFSG guidelines.

    5. Re:I don't trust Zend. by -noefordeg- · · Score: 2, Insightful

      Why is this modded +5 interesting, when it's not based on real world facts, but a construced situation where you don't have access to the source and if something like this was to happen, you couldn't fork off the project.

      Who cares if Zend sells out? Well, the parent does but who else?

  37. Re:Story Time by x0n · · Score: 2, Insightful

    The guy who they hired was a Korean exchange student, who I happen to think was a great choice for the job, but the problems started cropping up with the ASP code. It was buggy as hell.

    LOL! How much more rope do you want to throw us to hang you with buddy? Did you even read your own post? Uhhh, he was a great programmer but the problems were in the "ASP code". And who wrote that ASP code? pffff. Sounds like you're annoyed because you didn't get the job.

    And more to the point, which morons modded this +5? Perhaps Slashcode should be changed to hide slashdot IDs as a low ID obviously dazzles people into not reading the post and just robotically modding it up. Parent post is complete hogwash.

    --

    PGP KeyId: 0x08D63965
  38. surprised no one mentioned the documentation by MattW · · Score: 2, Informative

    For me, one of the best things about working in PHP is the online documentation. We've got:

    (1) Thorough, beautifully organized, accurate documentation with minimal but effective examples.

    (2) Fast searching. php.net/[searchterm] - it doesn't get much easier to look up a function, short of having the docs built into the IDE (Zend)

    (3) User comments. I've contributed a few comments myself when I've run into sticky issues and then realized what was going on. And more than a few times, I've found little code snippets attached to the relevent functions that are good ways to use them. PHP and ASP, in my mind, are both tools for RAPID development and deployment. PHP is good at rapid; very good. The docs are a major reason. They make familiarizing with something like a new extension library very easy.

  39. The new SimpleXML module is worth it alone by ShatteredDream · · Score: 2, Interesting

    I have been playing around with this module a bit and have found it to be damn good at what it does. It really makes it easy for people to take advantage of XML for simpler operations which takes away an advantage of ASP.NET.

    For many operations, SAX and DOM are simply too convoluted or complex. As long as you have an idea of what the document structure will be like in advance, you can quickly handle documents.

    Here is an example from my site of what it looks like

    <?php
    $xml = simplexml_load_file("test.xml"); //where test.xml contains the XML from up above
    print $xml->statement[0];
    print "<br/>";
    print $xml->statement[1];
    ?>
  40. Re:PHP 5.0 Goes For Microsoft's ASP-dot-Net by strictnein · · Score: 2, Informative

    Completely off-topic but:

    Troll rhymes with Truth: "THE DRAFT IS COMING BACK, National Service Act of 2003 - 2004, S.89, H.R.163"

    That bill is dead in the water and has been for over 1.5 years.
    2/3/2003:
    Referred to the Subcommittee on Total Force.

  41. Total hearsay FUD by abelikoff · · Score: 5, Insightful
    I've been doing ASP.NET development for relatively little time, compared to about 3 years of PHP programming (nothing of production quality though) but I have to say - this article is total BS.

    It is actually quite sad to see such superficial attempts to justify an open-source product merely on the "merits" of not being produced by Microsoft. I mean, using criteria like "strong", "weak", "$$" is not what I would consider professional. I good way to compare products actually would be to get the experts to implement a relatively real-life project (like the famous Pet Store) in both languages and then compare the development time, speed, code metrics, scalability, and potential for extensions. That would be a true comparison, not the "metrics" used in the article.

    Now back to personal preferences. Being a UNIX programmer with about 16 years of experience, I can assure you ASP.NET blows any other Web framework out of the water. Yes, it is that good. You get a very nice and consistent object model with full .NET power behind it. JSP and servlets shouldn't bother either as all HTML is generated transparently - in many cases you don't have to write a single line in HTML! As a result, you write less code, it is easier to maintain, with fewer opportunities for bugs or security holes. All are considered best practices in my book. I'd love to see PHP mature to the ASP.NET level but it is simply not there yet and even the attempts of PHP 5 to tackle these problems is a step in right direction, there is still a very long way to go.

    1. Re:Total hearsay FUD by swimmar132 · · Score: 2, Informative

      JavaServer Faces does the webcontrols/validators you mentioned. Plus java has all the APIs you could want.

  42. Re:Grr by JustNiz · · Score: 2, Insightful

    > You also do NOT have to pay for ASP.NET - you can > download the SDK and deploy a commercial website
    > without paying a penny.

    So you plan on trying to run ASP.NET on linux then? If you run your web server on Winodws it isn't free.

  43. But Wait, Theres more... by Bill,+Shooter+of+Bul · · Score: 2, Insightful

    Visual studio isn't just a platform for developing asp.net solutions. Its a single enviornment that can be used for enteprise server and desktop applications as well. It can do so much more than Zend can do.

    --
    Well.. maybe. Or Maybe not. But Definitely not sort of.
  44. Re:Story Time by pclminion · · Score: 2, Insightful
    Why not bring it up?

    If you feel that even the mere mention of a person's race is automatically a subtle indication of racism, you either are really stuck in the tar pit of political correctness, or you have some deep insecurities yourself about the race issue.

    Your nickname is "Saeed al-Sahaf." Is that a true reflection of your racial origins? If not, can you explain why your handle is not a racist reference, but the mention of a Korean's race is racist? I doubt you can.

    Sorry, we're not going to tip-toe around on your racial eggshell playing field. Guess what? People have different colors of skin, come from different places, and speak different languages. How are we supposed to rejoice in our diversity if the mere mention of it is taboo?

  45. Doesn't look like true OOP by FriedTurkey · · Score: 2, Insightful

    I am just guessing from reading the article but it seems that PHP5 isn't really OOP. More like VB6 when they added things called "classes" but it still wasn't OOP. VB6 just had a bunch of crap for marketing to say it was OOP. It wasn't until the complete re-write of VB.NET Microsoft really had OOP. Seems like PHP5 is doing the same thing and adding something called a "class" but doesn't have any other features of OOP. I know everyone seems to have there own definition of OOP but PHP5 seems to be off by a lot.

  46. Re:PHP 5.0 Goes For Microsoft's ASP-dot-Net by AstroDrabb · · Score: 3, Insightful
    ASP already has had such a long foothold on server side scripting
    Exactly how does ASP have a "foothold" on server side scripting when IIS has only 21% of the web server market?
    --
    If Tyranny and Oppression come to this land,
    it will be in the guise of fighting a foreign enemy. -James Madison
  47. Most important difference not mentioned! by the+quick+brown+fox · · Score: 4, Insightful
    It sounds like the author is comparing PHP to old-style ASP. ASP (non-.NET) was a web scriping language like PHP, JSP, CF, etc., where basically all you did was intermingle code blocks with HTML.

    ASP.NET (and the Java equivalent, JavaServer Faces) have a much different, (arguably) more sophisticated approach to web development. There is actually a pretty good story for UI/logic separation, eventing, and maintaining state. You can have your HTML tags constituted into a mutable object graph before rendering (example).

    The end result is a development style that lets one write web apps the same way one writes desktop GUI apps, and as a bonus you get far more compile time guarantees than before (even vis-a-vis compiled scripting languages like JSP). Whereas in most scripting languages, getting a dynamic <select> to default to the proper selection and remember its selection across page redraws takes an annoying kludge of code, it's trivial in ASP.NET.

    You don't have to like the direction MS has taken with ASP.NET, but the fact that the author didn't even mention the fundamentally different programming model it offers vs. PHP says to me that he didn't bother doing much research into it.

  48. Oracle's Licensing Argument by Erik+Hollensbe · · Score: 2, Informative

    Price. Here, we must consider not simply the price tag of the initial investment, which, in the case of PHP, is obviously free, but also the implementation, maintenance, and debugging costs. In the case of PHP, you may invest in the Zend optimization engine. With ASP, however, you're investing from the very beginning, and you're spending for add-on technologies--libraries for doing graphics manipulations, for instance. But, in the long term, PHP isn't going to press you to upgrade and collect more licensing fees. Everyone who has dealt with complex licensing also knows that companies spend time and money just ensuring they are compliant. Furthermore, you have a difference in response when getting bugs fixed. This, of course, translates to time, which translates to cost for overall development.

    Yep, anyone who's had to deal with oracle's licensing knows this one very well. :)

    I work at a primarily Oracle/mod_perl shop, and one of the biggest hurdles we've had as a team is making sure we don't step on oracle's toes.

  49. Way too much FUD by spideyct · · Score: 4, Informative
    Inaccuracies:
    • ASP.NET does all DB interaction through ODBC (it can, but it also has native drivers)
    • ASP.NET is slower/less efficient (pointless statement without evidence)
    • ASP.NET is more expensive than PHP (they are both freely downloads)
    • ASP.NET platform is more expensive (kinda. both work on Windows - PHP also works on more expensive Unices (so can we say PHP's platform is more expensive?) - PHP works on Linux, ASP.NET can kinda work on Linux if you count Mono)
    • ASP.NET is less secure because it requires IIS. Absolutely false! ASP.NET has no dependence on IIS. It just happens to be the default web server on Windows. You are free to write your own web server to host ASP.NET. An example to get you started.
    • VB.NET is the "default" .NET language? That statement doesn't make any sense.

    The author completely ignored one of ASP.NET's greatest advantages - it is an abstraction from writing HTML (which I guess they think makes it inefficient, just like C is less efficient than machine language). When I write:
    TextBox t = new TextBox();
    t.Text = "Hello World";
    I do not know, nor care, what actual markup will be returned to the client. Before you start worrying that you need absolute control - consider the problem of delivering to multiple browsers/devices. ASP.NET will render different markup, depending on the browsers capabilities. When browsing from a PDA or phone, it will render appropriate markup. Does PHP do that?

  50. Re:What is the best way to learn PHP5? by stgermh · · Score: 2, Informative

    Check out Advanced PHP Programming. Also O'Reilly's OnLAMP.com has a fairly good collection of tutorials.

  51. Eclipse is way ahead of VS.NET... by sonofagunn · · Score: 2, Informative

    ... if you are comparing Java programming to C# programming.

    VS.NET has the whole WYSINQWYG (What You See Is Not Quite What You Get) html/asp editor, but after pages get slightly complex, or you start taking advantage of User/Custom controls, the visual designer is more of a limitation than a benefit. The ability to create User controls is a really useful feature in ASP.NET.

    I currently use both in an enterprise/production environment. I much prefer the CVS/Refactoring/Auto-Compile/etc. features that Eclipse has over the few minor advantages of VS. VS.NET also has some annoying bugs, whereas the latest and greatest Eclipse has been rock solid for us.

    Also, at home I dabble in PHP and have good results using Eclipse with the PHP plugin from xored.com. It would still be nice to have a Visual HTML/PHP designer plugin (that was free).

  52. Re:Getting what you pay for by Digital11 · · Score: 3, Insightful

    Where can I get some of this crack you're smoking???

    1. We're talking ASP.NET, not ASP. Welcome to the conversation.
    2. How does ASP give you nothing? Last time I checked the .NET CLR is packed full of more classes than you'd ever know what to do with. I rarely have to buy any 3rd party components other than for interface-related things.
    3. It is VERY feasible to run ASP.NET on a totally free platform using Mono.
    4. If you think ASP.NET is inferior than PHP then you know nothing about web development. They both have strengths & weaknesses, but ASP.NET is by no means inferior.

    Someone MOD this FUD-believing sheep down please.

    --
    I am a leaf on the wind. Watch how I soar.
  53. Huh? C# *is* ASP.NET by rd_syringe · · Score: 2, Informative

    ASP.NET is any .NET language, or VB.NET or C#. If you'd like, you can even use C/C++.

    ASP.NET doesn't just run on IIS either. Apache runs it along with Mono.

  54. Re:PHP vs. ASP.NET by NulDevice · · Score: 2, Interesting

    Really an apples/oranges kind of comparison.

    NObody's going to argue the cross-platformability of php. Not even MS.

    And despite Mono and so forth, ASP.NET and the rest of the .NET development platform is created by Microsoft for Microsoft so developers can write Microsoft apps for Microsoft servers. .NET encompasses windows apps too, not just web apps. The codebase between the two is almost identical - okay, a winForm is stateful and a WebForm is stateless and the UI widgets are different, but the rest of the backend database/XML/IO stuff is the same. I don't think you'll want to use PHP to write a desktop app, or a suite with desktop/web integration. On the flipside, ASP.NET would be complete overkill for a majority of web-apps. .NET's main competitor isn't PHP. It's Java. The way the architectures and libraries are set up, the target audience, even the langauge skills requred. Hell, C# and Java resemble each other so much that switching back and forth is a dawdle (well, almost. I just came off a 5-mo C# contract and am now on a java gig and I keep accidentally swapping keywords). I realize PHP5 has added some OO functionality, but I'm doubtful that it's as ground-up OO as either Java or C#/VB.NET etc.

    PHP is great, I love it and use it all the time. But for the kind of work where ASP.NET would be an option, PHP wouldn't be. Regular old ASP? Sure, and I'd choose PHP over ASP in a heartbeat. But .NET is a different beast entirely. ASP.NET is as different from ASPclassic as it is from PHP.

    --

    ----
    "I used to listen to Null Device before they sold out."

  55. Re:am I the only one who thinks that by wkitchen · · Score: 2, Insightful

    If you had a monopoly that extended into as many domains as Microsoft, everyone would want a piece of you too.

  56. Very Simple by rjdohnert · · Score: 2, Informative

    Many people say you cannot run ASP.NET forms on Apache, yes you can. I do it and many people do it. I found a short little tutorial for you guys. here Here is the announcement from the Apache team that they would be supporting ASP.NET on Apache here OMG, Microsoft actually helped Covalent and the Apache teams get ASP.NET working on Apache 2. Read it This is more Oracle anti-MS rhetoric to get more money in their pockets.

  57. Re:Oh, PLEASE! by Anonymous Coward · · Score: 2, Informative

    Well, not everything MS does is evil. But their EULA comes might close in my book.

  58. Re:Story Time by Saeed+al-Sahaf · · Score: 2, Insightful
    At this point I'm about 80% sure that you are white, because only whites, in my experience...

    At this point, I am sure you are White American, because only White Americans feel the need to bring race into a question where race was never an issue.

    --
    "Who are in control, they are not in control of anything - they don't even control themselves!" - Glen Beck
  59. Oh please... by john_smith_45678 · · Score: 2, Informative

    PHP5 is a clear shot at ASP? Maybe ASP 3.x, NOT ASP.Net. PHP's library pales in comparison to .Net. I'd rather use Mono.

  60. Licensing by einhverfr · · Score: 2, Insightful

    You are only talking about the actual basic framework from MS. There is also the issue of any components which may need additional licenses-- third party controls, etc.

    Now, this whole discussion misses a couple of extremely important points. These include:

    1) An extremely vibrant open source community surrounding PHP. This has cost and licensing advantages in some areas, but cost and licensing disadvantages in other areas (for example, ensuring license compliance when distributing commercial software).

    2) Mono is available on Linux too. And there is a vibrant community there. Mono is mostly licensed under the LGPL allowing people to link to it from proprietary apps. And there is a great community there too.

    These licensing reasons are mostly bogus.

    --

    LedgerSMB: Open source Accounting/ERP
  61. The author misses nice combination - Apache::ASP by chicks.net · · Score: 2, Informative

    Apache::ASP provides ASP for free. Given the issues the author has with PHP (and there are plenty of other complaints beyond those he cites) it would seem that having ASP on a free platform would be an ideal combination for him.

    --

    --
    Free software isn't free, but expensive software is expensive.