🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #813

Re: Java or PHP? Serious decision to make

#813
From: Sung Chung
Date: Sat, 29 Apr 2000 00:00
293 lines
13635 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_00C7_01BFB1D8.4ACD8B20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

PHP is way to go! I have used it since version 2.0 and it has been easi, =
fast, and reliable. Plus it is free!
  Mark <code.guy@home.com> wrote in message =
news:3909B917.94DFECD8@home.com...
  Brad Willcott wrote:=20
     =20
    Hi there.=20

    Firstly, this is NOT a challenge for a fight to the death, but a =
serious request for real-world experience advise. So no flames please.=20

    I am trying to decide on a company standard for Web development. I =
am in the process of converting the company's servers from M$ NT Server =
4 to RedHat 6.2 Linux. This, ofcourse includes the Web server. I am =
pretty much sold on using Apache, and have already got an experimental =
server running with modules for: Perl, SSL, PHP and FrontPage 2000 =
Extensions.=20

    My question to you folks, is what are the reasons for/against using =
Java (not Javascript) and/or PHP as my company's web development =
language? As yet I have no preferrance for either apart from PHP's Open =
Source philosophy. I am interested in information on such things as: =
Learning curve, development/maintenance time, flexibility, accessing =
back-end Oracle databases, simplicity, power functions, etc.=20

    Perhaps you may feel it benefitial to use both. Why? Why not?=20

    We will be developing Web sites of varied styles and complexities. =
Many accessing back-end databases requiring complex relationships and =
integrity checking. Some will have two views of the database: =
Client/Customer view, and Company/Data Maintenance view. I'm looking to =
develop browser based data systems.=20

    So, I wish to thank you all, in advance for your input to this =
discussion.=20

    Brad Willcott=20
    Manager, Client Projects=20
    EW Systems, Australia=20
    +612 6232 6342=20
    <brad@ewsystems.com.au>=20
     =20
     =20
    =20

  Well to start out with lets look at the similarities.=20
  1. Both PHP and Java are interpreted. Meaning they have to be =
converted to machine code at Run-time unlike C which is precompiled and =
faster.=20

  2. Both are easy to learn if you know C/C++ and easier than C.=20

  3. Both can access your server and have built-in commands for doing =
so. You may need to install an Oracle library for Java, I don't know.=20

  If someone can think of more similarities add them.=20

  Differences=20

  1. Java can be Run on either the server or the client. PHP pages are =
rendered prior to sending to the client so they are server side. But the =
client has to support Java.=20

  2. Java can render pages as pop-up java applets on the client and =
offer more flexibility as they aren't limited to HTML, JavaScript, =
ActiveX stuff like browsers are. (I am distinquishing the difference =
between using Java engine for a applet as opposed to the browser itself =
minus the Java Engine.)=20

  3. For Client side information that is using a continuous feed i.e. =
Stock Ticker. Java is the way to go. I have seen the PHP chat program =
and it is slow.=20

  4. Security. PHP is more secure than Java. Java applets crash browsers =
and tend to be buggy. PHP on the other hand is considered pretty secure =
as the engine runs as part of the apache server. This means that Apache =
doesn't have to fork another program to render the pages serverside.=20

  5. Open Source. Because PHP is open source you can compile new =
commands to speed up page rendering or add more PHP commands.=20

  6. Object oriented. Despite PHP's limited Object Oriented support, it =
really isn't an object oriented programming language yet. Java is Object =
Oriented. Object Oriented programming is easier when you are working =
with a large number of programmers. It helps breakdown the problems into =
smaller units which can be written by individuals who don't have to know =
how the other programmers are writing their modules.=20

  7. Learning curve. PHP is fairly easy to learn and easier than Java.=20

  8. Graphics. PHP is slow at rendering graphics on the fly. As for =
Java, I haven't tried it but as an interpreted language I would assume =
that it would be slow as well unless.... See number 9.=20

  9. Compiling. Well if you want, you can compile Java code serverside =
for better performance. I don't know of a PHP compiler as of yet.=20

  10. Compatibility. If you use Java client side, you will run into =
compatibility problems. If the user is using one of the newer Browsers, =
they "may" have java enabled. An older browser probably doesn't have =
java support.=20

  11. PHP isn't a very mature programming language. With PHP, you are =
able to do lots but it is still lacking really good string functions. I =
would assume Java has much better string function support. But on the =
other hand PHP was written for the webmaster. It has lots of features =
that make using for rendering webpages a dream.=20

  Feel free to add more.=20

  We here at eWaddle are using PHP. Our goal is to reach a wide audience =
and maybe even people using lynx and other non-graphical browsers. As =
such, PHP is more than sufficient for the Job. We are using database =
access and=20
  have setup a news and discussion site for the open sources community. =
Come tryout our site. I encourage you to register, read and post.=20

  Keep a watch on our site as we plan to release the eWaddle code as =
open source later this year.=20

  Mark Lane=20
  Senior Programmer=20
  http://www.ewaddle.com=20
   =20


------=_NextPart_000_00C7_01BFB1D8.4ACD8B20
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>PHP is way to go! I have used it since =
version 2.0=20
and it has been easi, fast, and reliable. Plus it is free!</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV>Mark &lt;<A =
href=3D"mailto:code.guy@home.com">code.guy@home.com</A>&gt;=20
  wrote in message <A=20
  =
href=3D"news:3909B917.94DFECD8@home.com">news:3909B917.94DFECD8@home.com<=
/A>...</DIV>Brad=20
  Willcott wrote:=20
  <BLOCKQUOTE TYPE=3D"CITE">&nbsp;=20
    <P>Hi there.=20
    <P>Firstly, this is NOT a challenge for a fight to the death, but a =
serious=20
    request for real-world experience advise. So no flames please.=20
    <P>I am trying to decide on a company standard for Web development. =
I am in=20
    the process of converting the company's servers from M$ NT Server 4 =
to=20
    RedHat 6.2 Linux. This, ofcourse includes the Web server. I am =
pretty much=20
    sold on using Apache, and have already got an experimental server =
running=20
    with modules for: Perl, SSL, PHP and FrontPage 2000 Extensions.=20
    <P>My question to you folks, is what are the reasons for/against =
using Java=20
    (not Javascript) and/or PHP as my company's web development =
language? As yet=20
    I have no preferrance for either apart from PHP's Open Source =
philosophy. I=20
    am interested in information on such things as: Learning curve,=20
    development/maintenance time, flexibility, accessing back-end Oracle =

    databases, simplicity, power functions, etc.=20
    <P>Perhaps you may feel it benefitial to use both. Why? Why not?=20
    <P>We will be developing Web sites of varied styles and =
complexities. Many=20
    accessing back-end databases requiring complex relationships and =
integrity=20
    checking. Some will have two views of the database: Client/Customer =
view,=20
    and Company/Data Maintenance view. I'm looking to develop browser =
based data=20
    systems.=20
    <P>So, I wish to thank you all, in advance for your input to this=20
    discussion.=20
    <P>Brad Willcott <BR>Manager, Client Projects <BR>EW Systems, =
Australia=20
    <BR>+612 6232 6342 <BR>&lt;<A=20
    href=3D"mailto:brad@ewsystems.com.au">brad@ewsystems.com.au</A>&gt; =
<BR>&nbsp;=20
    <BR>&nbsp; <BR>&nbsp;</P></BLOCKQUOTE>Well to start out with lets =
look at the=20
  similarities.=20
  <P>1. Both PHP and Java are interpreted. Meaning they have to be =
converted to=20
  machine code at Run-time unlike C which is precompiled and faster.=20
  <P>2. Both are easy to learn if you know C/C++ and easier than C.=20
  <P>3. Both can access your server and have built-in commands for doing =
so. You=20
  may need to install an Oracle library for Java, I don't know.=20
  <P>If someone can think of more similarities add them.=20
  <P>Differences=20
  <P>1. Java can be Run on either the server or the client. PHP pages =
are=20
  rendered prior to sending to the client so they are server side. But =
the=20
  client has to support Java.=20
  <P>2. Java can render pages as pop-up java applets on the client and =
offer=20
  more flexibility as they aren't limited to HTML, JavaScript, ActiveX =
stuff=20
  like browsers are. (I am distinquishing the difference between using =
Java=20
  engine for a applet as opposed to the browser itself minus the Java =
Engine.)=20
  <P>3. For Client side information that is using a continuous feed i.e. =
Stock=20
  Ticker. Java is the way to go. I have seen the PHP chat program and it =
is=20
  slow.=20
  <P>4. Security. PHP is more secure than Java. Java applets crash =
browsers and=20
  tend to be buggy. PHP on the other hand is considered pretty secure as =
the=20
  engine runs as part of the apache server. This means that Apache =
doesn't have=20
  to fork another program to render the pages serverside.=20
  <P>5. Open Source. Because PHP is open source you can compile new =
commands to=20
  speed up page rendering or add more PHP commands.=20
  <P>6. Object oriented. Despite PHP's limited Object Oriented support, =
it=20
  really isn't an object oriented programming language yet. Java is =
Object=20
  Oriented. Object Oriented programming is easier when you are working =
with a=20
  large number of programmers. It helps breakdown the problems into =
smaller=20
  units which can be written by individuals who don't have to know how =
the other=20
  programmers are writing their modules.=20
  <P>7. Learning curve. PHP is fairly easy to learn and easier than =
Java.=20
  <P>8. Graphics. PHP is slow at rendering graphics on the fly. As for =
Java, I=20
  haven't tried it but as an interpreted language I would assume that it =
would=20
  be slow as well unless.... See number 9.=20
  <P>9. Compiling. Well if you want, you can compile Java code =
serverside for=20
  better performance. I don't know of a PHP&nbsp;compiler as of yet.=20
  <P>10. Compatibility. If you use Java client side, you will run into=20
  compatibility problems. If the user is using one of the newer =
Browsers, they=20
  "may" have java enabled. An older browser probably doesn't have java =
support.=20
  <P>11. PHP isn't a very mature programming language. With PHP, you are =
able to=20
  do lots but it is still lacking really good string functions. I would =
assume=20
  Java has much better string function support. But on the other hand =
PHP was=20
  written for the webmaster. It has lots of features that make using for =

  rendering webpages a dream.=20
  <P>Feel free to add more.=20
  <P>We here at eWaddle are using PHP. Our goal is to reach a wide =
audience and=20
  maybe even people using lynx and other non-graphical browsers. As =
such,=20
  PHP&nbsp;is more than sufficient for the Job. We are using database =
access and=20
  <BR>have setup a news and discussion site for the open sources =
community. Come=20
  tryout our site. I encourage you to register, read and post.=20
  <P>Keep a watch on our site as we plan to release the eWaddle code as =
open=20
  source later this year.=20
  <P>Mark Lane <BR>Senior Programmer <BR><A=20
  href=3D"http://www.ewaddle.com">http://www.ewaddle.com</A> <BR>&nbsp;=20
</P></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_00C7_01BFB1D8.4ACD8B20--
Technical Details
Message-ID: <8ef3je$85n$1@news01.arb1.te.uudial.us.uu.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <20000427.8194900@devserver.act.ewsystems.com.au> <3909B917.94DFECD8@home.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ce1c,5221373be980f1b9
X-Google-Attributes: gid10ce1c,public
X-Google-Thread: 10b1d3,5221373be980f1b9
X-Google-Attributes: gid10b1d3,public
X-Google-Thread: 10d6db,5221373be980f1b9
X-Google-Attributes: gid10d6db,public
From: "Sung Chung" <sungc@dellnet.com>
Subject: Re: Java or PHP?  Serious decision to make
Date: 2000/04/29
Message-ID: <8ef3je$85n$1@news01.arb1.te.uudial.us.uu.net>
X-Deja-AN: 617220714
References: <20000427.8194900@devserver.act.ewsystems.com.au> <3909B917.94DFECD8@home.com>
X-Priority: 3
Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C7_01BFB1D8.4ACD8B20"
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
X-Complaints-To: news@news01.arb1.te.uudial.us.uu.net
X-Trace: news01.arb1.te.uudial.us.uu.net 957026734 8375 63.17.83.253 (29 Apr 2000 16:45:34 GMT)
Organization: UUNET
X-MSMail-Priority: Normal
Mime-Version: 1.0
NNTP-Posting-Date: 29 Apr 2000 16:45:34 GMT
Newsgroups: aus.computers.java,ba.php,ufra.lists.php