473,657 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

oracle article: "PHP vs. ASP.NET"

These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html
Jul 17 '05 #1
6 2511
Terence wrote:
These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html


Especially when they disappear before anyone can read them ;-)
Jul 17 '05 #2
On Thu, 01 Apr 2004 11:15:35 +0100, Kevin Thorpe wrote:
Terence wrote:
These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html


Especially when they disappear before anyone can read them ;-)


It is still there. I just read it.

Jerry
Jul 17 '05 #3
Kevin Thorpe wrote:
Terence wrote:
These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html


Especially when they disappear before anyone can read them ;-)


I saw it just fine... Here's the bottom line on it:

(quoted from http://otn.oracle.com/pub/articles/hull_asp.html)

Making the Choice

Without assuming you've already decided to go with PHP, I'll conclude
that its strengths far outweigh its weaknesses. (See the summary in
Table 1.) It boils down to price, speed and efficiency, security,
cross-platform applicability, and open-source opportunity. Its only
weakness is its lack of a pure and perfect OOP implementation; however,
this is a minor drawback. Though language constructs do help,
ultimately, good coding is a matter of practice, execution, good habits,
and discipline.

Table 1
PHP 4 PHP 5 ASP.NET
Software price free free free
Platform price free free $$
Speed strong strong weak
Efficiency strong strong weak
Security strong strong strong
Platform strong strong weak (IIS only)
Platform any any win32 (IIS only)
Source available yes yes no
Exceptions no yes yes
OOP weak strong strong

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—li braries 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.

Speed and efficiency. As I mentioned earlier, ASP.NET is a framework
allowing you to use various programming languages. In addition, it is
touted as having a great object-oriented model. All this is true, but it
becomes a detriment as far as speed is concerned. For all that
advantage, there is a lot more code to run through to execute the same
ASP page than you have to execute in the PHP engine for an equivalent
PHP page. PHP is the quick-and-dirty type of solution, the one to get
the job done. And though a lot of robustness has been added to it since
its 2.0 and 3.0 days, it still retains that core optimized high-speed
approach.

Speed is not the only consideration. Memory usage is also important.

Security. ASP.NET runs on IIS, which has been compromised innumerable
times, as evidenced by IT news reports every other week. It has become
such a liability, in fact, that in spite of all the marketing dollars
spent on it, many IT professionals refuse to have their networks exposed
with an IIS Web server. PHP, however, works with Apache, which has a
proven track record of speed, reliability, and hardened security. Check
www.securityfocus.com for more information.

Cross-platform applicability. ASP.NET runs on IIS and is starting to run
on Apache, which can run on a whole host of platforms. PHP has been
designed to work with Apache from the beginning, so you have many proven
and reliable server platforms to choose from.

Open source opportunity. Open source is not just some philosophical
torch idealistic programmers, or companies wanting to save a few bucks
on licensing costs, are carrying. When you're dealing with bugs in the
software itself, open source can be a serious godsend.

In either case, with PHP or ASP.NET, you have a large user base using
the software and possibly encountering bugs. With ASP.NET, those bugs
have to go through a bureaucratic process to get acknowledged, fixed,
tested, and rolled out in a new patch or release. PHP fixes, however,
can get fixed quickly and rereleased. Anyone who has watched open-source
development knows new releases and patches often come out in days rather
than in weeks or months, as with commercial software. If that's not fast
enough, you can always fix a problem yourself if you have to.

--
Justin Koivisto - sp**@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
SEO Competition League: http://seo.koivi.com/
Jul 17 '05 #4
> I saw it just fine... Here's the bottom line on it:

(quoted from http://otn.oracle.com/pub/articles/hull_asp.html)

Making the Choice


Thanks, it had disappeared earlier on but then the 'net has been
somewhat flaky today.

It looks like I chose the right solution in the first place, but then
from my perspective it was a no-brainer (no budget).

Jul 17 '05 #5
With total disregard for any kind of safety measures Terence
<tk******@fastm ail.fm> leapt forth and uttered:
These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html


Dang, an article where PHP actually /beats/ ASP.NET? Thats a rare and
beatiful thing.

I have to say that the way Oracle seems to be coming out rooting for
PHP is quite heartening after such a long period of silence over the
issue.

--
Phil Roberts | Dork Pretending To Be Hard | http://www.flatnet.net/
Jul 17 '05 #6
Phil Roberts wrote:
With total disregard for any kind of safety measures Terence
<tk******@fastm ail.fm> leapt forth and uttered:

These comparrison articles are always fun :)

http://otn.oracle.com/pub/articles/hull_asp.html

Dang, an article where PHP actually /beats/ ASP.NET? Thats a rare and
beatiful thing.

I have to say that the way Oracle seems to be coming out rooting for
PHP is quite heartening after such a long period of silence over the
issue.


Near the beginning of the article basically invalidate the comparrison
itself by saying that PHP is a language technology and ASP.net is more
of a framework technology. These sorts of things are not really all that
comparable. ASP.net needs to be compared to higher level web frameworks
like Java Server Faces (Sun's new web framework that runs on top of
their Servlets/JSP specification), Apache Struts (Java), Apache Cocoon
(Java/XML), or Popoon (PHP5/XML), Krysalis(PHP/XML), or XAO-PHP(PHP/XML).

I'm not an ASP.NET expert but from what I've seen, it has it's good
points. Personally, I find it too prescriptive. My favourite framework
is Cocoon, it is the most flexible and the most powerful and leaves
asp.net stone dead in the water. There is a PHP port of Cocoon called
Popoon, but I don't know that a direct port of that Java framework will
preserves the advantes inherint in the PHP language. The XAO-PHP
framework was written by yours truly but I haven't had the time to
finish it and issue a final release -- although I still believe in the
concept. It's worth checking out the framework stuff by Tony Masterton
as well. He has done some sterling work based on many years of
programming experience. I only endorse frameworks which centralise on
XML-based transport layers since interoperabilit y is a paramount concern.

REFERECNES:
JSF home
http://java.sun.com/j2ee/javaserverfaces/index.jsp
Sun's new IDE featuring JSF tools
http://wwws.sun.com/software/product...tor/index.html

Apache Struts web framework
http://jakarta.apache.org/struts/
Apache Cocoon publishing framework (XML pipelines)
http://cocoon.apache.org/2.1/

Bitflux Popoon (Cocoon port)
http://bitflux.ch/developer/cms/popoon.html
I haven't checked this one out yet. They are upgrading the port to PHP5.

PHP Framework for XML/XSL/SOAP
http://www.interakt.ro/products/Krysalis/
Haven't checked this one out yet (I really should)

Tony Masterton's work (comp.lang.php junkie ;)
http://www.tonymarston.co.uk/php-mys...structure.html
(I've read through this. looks good to me. Some very original ideas.)

XML Application Objects (Object Oriented DOM-XML framework with XSL)
http://xao-php.sourceforge.net
I need to spend some time finalising it - although everything works.
(when I'm not designing FarCry missions)
Jul 17 '05 #7

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

Similar topics

3
5495
by: Vik Rubenfeld | last post by:
I'm a newbie to Apache. This week I installed my first Apache 2.0 server, and it's working fine. I then installed PHP. When I ran the PHP test file ("test.php"), the actual text contents of the file came up in the browser: ---------------- <?php phpinfo(); ?> ----------------
12
9688
by: bhennon | last post by:
Hey all, I have a small php script that calls a random image at the following page. http://www.2006ymcanationals.com/random.php IT WORKS IF I go directly to the above link. I am trying to call that in another page so that i get a random image the page is http://2006ymcanationals.com/index.php using <img
6
3670
by: Al Dykes | last post by:
I've just grabbed a PHP book and can deal with the syntax and now I need to decide to learn specific packages and features. Define "framework". What are the major framework flavors ? Under what conditions can I use two or more frameworks? Sorry for the beginners question.
3
4106
by: fasanay | last post by:
Hi everybody I have got the following PHP code which I am trying to convert to ASP any help will be appreciated...I have done most of it but I cant find a replace function for Unset in asp which will discard the variable alltogether... if ($categoryid == "all") { $sql = "SELECT * FROM products where shopinspection=$shopinspection"; unset($HTTP_POST_VARS); unset($HTTP_POST_VARS);
9
3445
by: Codex Twin | last post by:
I am re-sending this in the hope that it might illicit a response. I have a corporate client who forces their workstations to get the proxy server details using an automatic proxy discovery script. Unfortunately, the .NET Framework does not support automatic proxy discovery scripts. See: http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;307220 The article above details that the way to workaround this is to edit the...
5
3204
by: Jim Carlock | last post by:
I've set up the following using an Alias in Apache... Alias /phpdocs/ "C:/Apache/htdocs/common/docs/php/" <Directory "C:/Apache/htdocs/common/docs/php"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
3
1932
by: mejpark | last post by:
Good afternoon PHPers, This morning I downloaded "PHP Users" from sourceforge to implement a user registration system. I followed the instructions in INSTALL.txt, and successfully configured MySQL and set up an Apache Alias. Eclipse reported several errors and warnings for scripts inside the "PHP Users" directory. These errors were caused by incorrect paths inside the include, require-once and require statements. I changed all of...
2
3725
brettl
by: brettl | last post by:
Hey all. I'm not sure if this question should be posted here or in the XML forums. Please forgive me if its in the wrong place or feel free to move it. Any who, I'm using a SOAP service to display a list of news articles. I'm outputing the results using XSLT. I'm using the following code to strip the returned pubdate and then calculate the time between today's date and the pubdate. <xsl:template match="f">
3
4090
by: JamesB | last post by:
Not sure if this is possible, but has anyone seen (or know how to do) emulation of the PHP "crypt" function from within c#? Thanks
0
8402
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
8315
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8829
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8734
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
8508
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,...
0
5633
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
4323
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2733
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
2
1962
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.