473,599 Members | 3,160 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP vs ASP and JSP again.

Hey all,

I am just wondering why all people use PHP if ASP.NET and JSP
can offer better performance in a system requires a lot of operation
processing (in my own understanding, because .NET and Java business
components classes are pre-compiled already).

Thanks in advance.

Regards,
Tim Chung
Jul 17 '05 #1
6 12262
Tim Chung <ti**********@g mail.com> wrote:
I am just wondering why all people use PHP if ASP.NET and JSP
can offer better performance in a system requires a lot of operation
processing (in my own understanding, because .NET and Java business
components classes are pre-compiled already).


You could find such discussions in the history of this (and various
others) group. But short and simple (IMHO):
-PHP the language is extremly simple
-PHP the environment is wide spread
-PHP is (more) multi platform.
-ASP.net, Java/Servlets/JSP come with a VM overhead, which could be
a huge impact on light weight machines.

Jul 17 '05 #2
Tim,

Many people use PHP for many reasons. A lot of people prefer that PHP
does not force OO upon the programmer, as OO is not suitable for all
programs.

The performance issue is an interesting one. In my own experience, PHP
is the fastest of the three, but I have only tested with a very small
set of scripts which are likely to be suited to PHP more than the
others. OO programs do tend to be slower. As an aside, you can
precompile your PHP scripts into bytecode so that the entire script
doesn't need to be compiled at runtime.

Rather than get into an in-depth discussion of this here, which is
bound to start a flame war, I'm instead going to point you to some
websites with more information on the topic:

== PHP vs. ASP.NET ==
http://www.blazonry.com/devnotes/phpasp1.php
http://www.oracle.com/technology/pub.../hull_asp.html and
http://www.oracle.com/technology/pub...hull_php2.html
http://www.sitepoint.com/article/php...-myths-exposed
http://librenix.com/?inode=4970

http://www.google.com/search?q=PHP+vs.+ASP.NET

== PHP vs. JSP ==
http://saloon.javaranch.com/60/000048.html
http://lists.evolt.org/archive/Week-...03/056868.html
http://www.oreillynet.com/pub/wlg/5155
http://www.caucho.com/articles/benchmark.xtp

http://www.google.com/search?q=PHP+vs.+JSP

Jul 17 '05 #3
Because PHP is extremely easy to program (though I am a JSP developer
not a .NET one) in comparison. It also has, far and away (IMHO) the
best resources and open source material on the internet - someone has
already done most of the hard work for you if you are any good at using
Google :)

Hosting is generally cheaper too- even premium/dedicated stuff.

PHP is also better understood by the current generation of developers.

I'm a JSP developer predominantly but have really come to appreciate
PHP - things are so easy in it that for small scale apps it is a good
choice. I also think that people overplay the performance issues - if
you have a good dedicated server for PHP it is not going to be much
different in speed than a JSP or .NET server.

If you want to start looking at larger scale apps then I would suggest
JSP/J2EE and .NET offer a better framework for developing, but not
because of performance - having precomiled classes & webpages as well
as strong typing mean that run time errors are much less likely to
happen.

Rick Huby
www.e-connected.com

Jul 17 '05 #4
thehuby wrote:
Because PHP is extremely easy to program (though I am a JSP developer
not a .NET one) in comparison. It also has, far and away (IMHO) the
best resources and open source material on the internet - someone has
already done most of the hard work for you if you are any good at using
Google :)
<snip>
I'm a JSP developer predominantly but have really come to appreciate
PHP - things are so easy in it that for small scale apps it is a good
choice. I also think that people overplay the performance issues - if
you have a good dedicated server for PHP it is not going to be much
different in speed than a JSP or .NET server.

Define scale.

In terms of dealing with huge volumes of throughput, PHP scales much more
easily across a cluster than JSP (no RMI overhead). It's just a matter of
throwing more iron at the problem. If you're Google, then hardware cost
will outweigh programmer time, but if you're Google you probably won't be
using JSP/ASP either.
If you want to start looking at larger scale apps then I would suggest
JSP/J2EE and .NET offer a better framework for developing, but not
because of performance - having precomiled classes & webpages as well
as strong typing mean that run time errors are much less likely to
happen.


I think we had this debate already.

C.
Jul 17 '05 #5
You may want to check out our eXtc Web Developer product
(www.mgateway.com/php/mgw/ewd.php). Though it's currently tied to the
Cache database, the interesting thing about it is that it provides an
abstracted web application development approach that is end-technology
independent. So, from the Design Pages that define a web application,
eXtc Web Developer compiles the application into either PHP or JSP
(we're going to add ASP.net in the near future).

You can then choose the right platform (PHP or JSP) for your
application, or change downstream if/when the relative performance
benefits of the different run-time technologies change. And you don't
need cross-training in each technology or know or understand the
intricacies of PHP or JSP.


On Thu, 16 Jun 2005 09:13:46 GMT, Tim Chung <ti**********@g mail.com>
wrote:
Hey all,

I am just wondering why all people use PHP if ASP.NET and JSP
can offer better performance in a system requires a lot of operation
processing (in my own understanding, because .NET and Java business
components classes are pre-compiled already).

Thanks in advance.

Regards,
Tim Chung


---
Rob Tweed
M/Gateway Developments Ltd

Global DOMination with eXtc : http://www.mgateway.tzo.com
---
Jul 17 '05 #6
Tim Chung wrote:
Hey all,

I am just wondering why all people use PHP if ASP.NET and JSP
can offer better performance in a system requires a lot of operation
processing (in my own understanding, because .NET and Java business
components classes are pre-compiled already).


I work for a company that builds big (I mean BIIIIG) web applications for
transaction-based e-commerce business models. We are nearing completion of
the transition from ASP.Net to JSP. The reasons are two fold:
1. cross-platform support
2. due to #1, the ability to better tailor the hardware and software (OS)
for individual customer requirements.

What we've found is that performance between the two offerings was very
similar, but once we moved away from Windows+Intel[1] to Linux+AMD64 the
real performance advantages started to be obvious.

Java on 64bit platforms simply wins hands down in the bangs-per-buck stakes
when pitted against Windows on IA32. I guess that's rather obvious, but we
didn't expect to see performance gains in orders of magnitude for
throughput and 70-80% improvements is script runtime etc.

[1] Xeon 3GHz class machines - not toy P4's etc.

James
--
I hate small towns because once you've seen the cannon in the park
there's nothing else to do.
-- Lenny Bruce

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4056
by: Phil Powell | last post by:
I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes, the PHP script I run behaves according to this cookie existing or not) and run the script again. Everything runs fine, but the cookie is never set again. Does anyone know why this happens? I am using Win2000 Professional with IE 6. Cookies are being set with PHP and Javascript. Thanx Phil
5
4605
by: Bruce | last post by:
I have a number of forms that do significant work based on variables POSTed from the form. What is the common method of detecting and preventing this work from being done when the form is POSTed as the result of the user clicking the Back or Reload buttons in the browser? --Bruce
1
1444
by: Jiten | last post by:
Hi Cor I spoke with u previously about this problem i had and u gave me some code that helped me. That code worked fine but i have now encountered another issuee that im hoping u may know how to solve What my code below is doin is if a combobox and textbox is not empty, it is adding the items to a listview The listview has 2 columns... Product Quantit What i want to do is to add the product along with the quantity into the...
8
1881
by: jon morgan | last post by:
OK, I'm going to be brave. There is a bug in VS.Net 1.1 that causes random compiler errors. I have raised this issue in posts at least three time in the past couple of months without attracting much interest. But it's driving me nuts. Here's what happens. I'm working on a multi project VB app. happily writing nice inoffensive code - go to compile and the compiler tells me there's a problem in a project I'm not working on. But really...
17
3371
by: Gabriel Mejía | last post by:
Services or applications using ActiveX Data Objects (ADO) 2.0 or greater may intermittently return empty recordsets on queries that should be returning valid results. At the time the problem occurs, the same queries successfully return the expected data when run from non-ADO sources, such as from ISQL in Microsoft SQL Server. This problem predominantly occurs on multi-processor computers but has also been known to occur on single-processor...
3
1803
by: penny336 | last post by:
dear all, i am using vc++ 6.0 sp5 i have a class called Address,it allocated some memory space for streetname and city i first define it as Address add = new Address("Madrian","UK"); ... delete add // delete it explicitly
11
2744
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do understand the objective. This example may represent an interface in need of a bit of refactoring, but it goes to demonstrate the basic idea as I understand it. http://developer.kde.org/documentation/library/cvs-api/kdevelop/html/ast_8h-source.html...
6
2314
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of performance hogs like cursors, but I know there are lots of ways the application could be made more efficient database-wise. The server code is running VB6 of all things, using COM+ database interfaces. There are some clustered and non-clustered...
34
3241
by: Reinhold Birkenfeld | last post by:
Hi, the arguments in the previous thread were convincing enough, so I made the Path class inherit from str/unicode again. It still can be found in CVS: /python/nondist/sandbox/path/{path.py,test_path.py} One thing is still different, though: a Path instance won't compare to a regular string.
5
3978
by: Mike TI | last post by:
March 24, 2006 Hi all I am new to VB.NET and am using VB.NET 2005. I have an MDI form with a Split Container Control. On demand I am adding and removing User Controls on Panel 2. I am using Show() and Hide(). It works perfectly. The only thing is I would like to remove the User Control from memory instead of hiding. I tried Dispose(), however then I cannot show this
0
7992
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8400
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8051
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5438
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3898
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3940
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2414
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1250
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.