Actually, you are missing one tier...... In a Three-Tier application, you have the browser (which is the Presentation Tier), the Web Server (which is the Business and Logic Tier) and the Database server (which is the Data Tier) I think that what you are trying to say is that JSP in addition to Three-Tier applications, can also do n-tier applications. In n-tier application, you separate the Business Rules and the Logic tiers. In JSP, you can have Enterprise Java Beans separate from the "script" the make up the JSP page. I don't know of any equivalent in PHP unless PHP has the ability to instantiate COM components. Although you might consider writing you own PHP modules as being a n-tier application. As is said in every single discussion when you ask a question like this is that you must use the language which is more comfortable to you. If you have never used either language, you might want to look at more than just the language. Questions like: How much does the server software cost me?, What kind of hardware must it run on?, What kind of User Support Groups does it have?, etc. And of course, It ALWAYS depends on what kind of project and what it's deadline is. ...................................................... Julian Easterling Senior Web Developer The CDM Group -----Original Message----- From: Tom Mathews [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 30, 2001 9:09 AM Cc: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] RE: PHP vs JSP ? I agree with Simon It is actually possible to work three tiers with PHP, but not so obviously as JSP does. The hit you take is performance, so it depends on what the application is whether to use JSP or PHP. Personally, for any e-commerce work I use PHP. It's very easy to get it hosted and those few seconds difference in making the scripts immediately available instead of caching them all could be the difference between a customer continuing or hitting the back button. For intranet applications, I've found a definite benefit in JSP (and dare I say it ASP!). Performance is never such an issue, but scaleability might be, as is the ability to use the windows API etc - you can of course write C modules for PHP to do pretty well anything you fancy on any platform, but this may be too much hassle for you. Simon Willison wrote: > I think it depends mainly on the scale of the project. PHp and JSP can both > be used to achieve exactly the same things (i.e dynamically generated pages, > tied in with databases, user interaction etc) - it's a lot easier to learn > and develop in PHP because you don't have to learn Java first. > > The big advantage of JSP (and if anyone knows better feel free to shoot me > down on this one) is that it can be used within a 'three tiered' web server > system. PHP only really works on two tiers - you have your web server > running PHP which talks to your database server. JSP solutions such as > Dynamo offer a full on triple tiered system with web servers pushing out > content, application servers sitting in the middle generating dynamic pages > and database servers on the back end. This is hugely scalable, which the 2 > tiered PHP solution isn't. > > On the performance side a noticeable element of JSP is that the scripts are > compiled the first time they are run, and then remain in memory as compiled > code after that. The result is that although the first request to a JSP > script will take a whle, after that they will be lightning fast. > > In answer to your question then: Both can be used to create powerful > dynamic web pages, but PHP has the edge when it comes to speed and ease of > development, while JSP is better if you are developing an extremely high > load application which will need to be scaled. > > -----Original Message----- > From: Antonio Lopez [mailto:[EMAIL PROTECTED]] > Sent: 29 January 2001 11:08 > To: [EMAIL PROTECTED] > Subject: PHP vs JSP ? > > PHP or JSP ? > > I need to know what language is better to develop powerful dinamic web > pages. > > Thankyou!! > > =================================================== > Antonio López Luna > Ingeniería e Integración Avanzadas (Ingenia), S.A. > Parque Tecnológico de Andalucía > 29590 - Málaga (Spain) > > Tel. 34-952029300 Ext. 386 > Fax. 34-952029309 > Web: http://www.ingenia.es > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]