473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How about the future of PHP compared with Java?

Is PHP more suitable for developing an interactive website than Java/
J2EE?
Jun 2 '08 #1
8 1820
On Apr 26, 2:00 am, tenxian <hi.steven...@gmail.comwrote:
Is PHP more suitable for developing an interactive website than Java/
J2EE?
The question is so broad that there likely is no single correct answer
for all sorts of interactive websites. PHP has become much more
popular over recent years, and Java has become less popular. I find
PHP more easy to apply than Java in many cases, but then those who
started writing Java when it was young may often find Java code more
easy to write. Someone who comes from a background in C++ or some
other language might find it easier to use than PHP or Java. All sorts
of languages can be put on a server if the user is allowed to do so.
The main interactive site that I use written in Java is that of the
control panel for the server I use. This was of installed by the owner
of the server.
Jun 2 '08 #2
On Apr 26, 3:16 pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
On Apr 26, 2:00 am, tenxian <hi.steven...@gmail.comwrote:
Is PHP more suitable for developing an interactive website than Java/
J2EE?

The question is so broad that there likely is no single correct answer
for all sorts of interactive websites. PHP has become much more
popular over recent years, and Java has become less popular. I find
PHP more easy to apply than Java in many cases, but then those who
started writing Java when it was young may often find Java code more
easy to write. Someone who comes from a background in C++ or some
other language might find it easier to use than PHP or Java. All sorts
of languages can be put on a server if the user is allowed to do so.
The main interactive site that I use written in Java is that of the
control panel for the server I use. This was of installed by the owner
of the server.
Is PHP becoming more and more popular? Any proof of that?
Jun 2 '08 #3
tenxian wrote:
On Apr 26, 3:16 pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
>On Apr 26, 2:00 am, tenxian <hi.steven...@gmail.comwrote:
>>Is PHP more suitable for developing an interactive website than Java/
J2EE?
The question is so broad that there likely is no single correct answer
for all sorts of interactive websites. PHP has become much more
popular over recent years, and Java has become less popular. I find
PHP more easy to apply than Java in many cases, but then those who
started writing Java when it was young may often find Java code more
easy to write. Someone who comes from a background in C++ or some
other language might find it easier to use than PHP or Java. All sorts
of languages can be put on a server if the user is allowed to do so.
The main interactive site that I use written in Java is that of the
control panel for the server I use. This was of installed by the owner
of the server.

Is PHP becoming more and more popular? Any proof of that?
The number of websites created in PHP vs. the number of websites created
in Java.

Also, look around. See how many hosting companies offer PHP vs. those
offering java.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #4
tenxian wrote:
Is PHP more suitable for developing an interactive website than Java/
J2EE?
This usually depends on the scale of the project.
Java as a language is far more mature and is better suited for big projects.
PHP still doesnt do best in very big projects (though it's improving),
but ss much easier to develop small applications with.

So if you expect to have 300+k lines of code, then I recommend Java. If
your target is small or medium site, hosted on some shared server ect.,
then you will be better off using PHP.

best regards
Piotr N
Jun 2 '08 #5
Why limit this discussion to PHP vs Java? I program in PHP, but I
have been looking around for a different language to add to my bag of
skills, and a professor at a local college, who has experience in both
PHP and Java,tells me he is sold on .NET. He likes both C# and VB.
The problems he found with Java, he says, are "just fixed" in .NET.
Now what do you think of that?
On Sat, 26 Apr 2008 00:00:02 -0700 (PDT), tenxian
<hi**********@gmail.comwrote:
>Is PHP more suitable for developing an interactive website than Java/
J2EE?
Jun 2 '08 #6
Michael Vilain wrote:
In article
<56**********************************@w4g2000prd.g ooglegroups.com>,
tenxian <hi**********@gmail.comwrote:
>On Apr 26, 3:16 pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
>>On Apr 26, 2:00 am, tenxian <hi.steven...@gmail.comwrote:

Is PHP more suitable for developing an interactive website than Java/
J2EE?
The question is so broad that there likely is no single correct answer
for all sorts of interactive websites. PHP has become much more
popular over recent years, and Java has become less popular. I find
PHP more easy to apply than Java in many cases, but then those who
started writing Java when it was young may often find Java code more
easy to write. Someone who comes from a background in C++ or some
other language might find it easier to use than PHP or Java. All sorts
of languages can be put on a server if the user is allowed to do so.
The main interactive site that I use written in Java is that of the
control panel for the server I use. This was of installed by the owner
of the server.
Is PHP becoming more and more popular? Any proof of that?

How many _shared_ web hosting sites offer a Java server and application
environment? If you're paying for web space and sharing the machine
with other people, chances are you'll find php, MySQL, and perl on that
system at a minimum. When you create a page in Apache's mod_php or
mod_perl, there's no global environment to save context between pages.
Once the page is processed by the module, it's gone. You have to use
some sort of serialization (usually saving context between pages via
"sessions" which can be implemented via cookies or a table in MySQL).

I'm not that familiar with Java, but my understanding is that to run it
you use an application server (e.g. Tomcat) along with a web server and
you pretty much have the entire machine. That's great if you colocating
a box or have a virtual machine setup. It also means that someone's got
to manage it for you. I wouldn't propose such an environment to a small
shop as they'd need someone pretty high priced and hard to find to
support it. Many of the small coding projects in php don't require as
much care and feeding.
No, pretty much the same is true in Java. It isn't the language which
determines the need for sessions or cookies, it's the protocol. Java
has it's own way of handling data, but at the lowest level, it's not
that much different that PHP.
This debate is like arguing over which car is "better" (for varing
values of "better"). The Default Answer(tm) fits best here:

"That depends"
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #7
firewoodtim wrote:
Why limit this discussion to PHP vs Java? I program in PHP, but I
have been looking around for a different language to add to my bag of
skills, and a professor at a local college, who has experience in both
PHP and Java,tells me he is sold on .NET. He likes both C# and VB.
The problems he found with Java, he says, are "just fixed" in .NET.
Now what do you think of that?
On Sat, 26 Apr 2008 00:00:02 -0700 (PDT), tenxian
<hi**********@gmail.comwrote:
>Is PHP more suitable for developing an interactive website than Java/
J2EE?
Because there are more appropriate newsgroups. And we don't need
another religious discussion here.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 2 '08 #8
On 26 Apr, 15:43, firewoodtim <firewood...@cavtel.netwrote:
Why limit this discussion to PHP vs Java? I program in PHP, but I
have been looking around for a different language to add to my bag of
skills, and a professor at a local college, who has experience in both
PHP and Java,tells me he is sold on .NET. He likes both C# and VB.
The problems he found with Java, he says, are "just fixed" in .NET.
Now what do you think of that?

On Sat, 26 Apr 2008 00:00:02 -0700 (PDT), tenxian

<hi.steven...@gmail.comwrote:
Is PHP more suitable for developing an interactive website than Java/
J2EE?
The problems with Java are now well-discussed in the open - so it
would be fairly easy for anyone to come along and write a better
version of the language - unfortunately Sun were encumbered with a
legacy they couldn't really walk away from.

But .NET introduces a whole set of problems on its own - Microsoft
don't really produce programming languages - they produce products.
What you can do with these products is severely constrained -
similarly what other people can help you with is also limited e.g.
http://www.regdeveloper.co.uk/2007/0...t_mvp_threats/ It
remains a single vendor product tied into that vendors other products.
In a number of areas Microsoft have profited from controlling access
to the product but also to information about the product; training is
now a major revenue stream for the company. They have also profited
from making their systems incompatible with those from other vendors
(witness SSL keep-alives). Endorsing this approach enforces a monopoly
position which has been proven to be abused in the past.

Java exists in a very healthy eco-system being first to market with a
fairly flexible core language with little platform dependancy.

Despite the existence of GUI widget bindings for PHP its current
memory management model is highly unsuited to desktop applications
(and that IMHO is GOOD thing). Unfortunately people still perceive
universal applicability of a language is a good thing - when really
its something of a myth. The same memory management which makes Java
work well for standalone applications undermines its effectiveness as
a web development language. Why do you think groovy, jython et al.
exist?

Similarly because Java did not wish to be too dependant on an existing
way of solving a problem, it has frequently gone off and built
byzantine and obscure but brutally 'correct' ways of doing things -
like JMS and JNDI.

Piotr wrote:
Java as a language is far more mature and is better suited for big projects.
PHP still doesnt do best in very big projects (though it's improving),
It's certainly easier to establish good programmer credentials using
Java compared with PHP. Leaving aside the issue of certification, you
simply can't write a working J2EE application unless you're a
proficient Java programmer. But it requires significantly less skill
to write a working PHP application - unfortunately the differences
will show up in terms of scalability, security and maintainability -
which are more difficult to prove than simple functionality.

I have never found any evidence to substantiate the claim that PHP is
less effective for large scale projects. IMHO the difference is due to
the fact that PHP does not have as well developed an eco-system; the
lack of namespaces is probably the main issue, but rather than finding
ways to avoid the problem (like continious integration) a great deal
of time and effort has been spent in addressing it directly.

C.
Jun 2 '08 #9

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

Similar topics

52
by: Neuruss | last post by:
It seems there are quite a few projects aimed to improve Python's speed and, therefore, eliminate its main limitation for mainstream acceptance. I just wonder what do you all think? Will Python...
2
by: Radith Silva | last post by:
Hi all; I'm currently a student comparing my study options for the future. Currently I have (Certified) experience in Java and Web Development. My strong-hold I'd say is web-development but am...
242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
47
by: David Eng | last post by:
> For many years now enterprise business application development has > been the core area for the use of C++. > Today a significant share to this segment has already been lost to > SUN's Java...
375
by: rkusenet | last post by:
This article is very bleak about future of DB2. How credible is the author. http://www.eweek.com/article2/0,1895,1839681,00.asp
9
by: Jason Vene | last post by:
I've looked at recent posts and not found material, but I'm new to the board, so please forgive if this thread has come up before. I'm facing a conundrum about development of business...
51
by: Jon Harrop | last post by:
If Microsoft turn F# into a product and place it alongside C# and VB, will many people migrate from C# to F#? -- Dr Jon D Harrop, Flying Frog Consultancy http://www.ffconsultancy.com/products/?u
2
by: desai.ninad | last post by:
Hi guys, i am a php professional, having nearly 4 years of experience in this domain. When i joined php, it was not popular at all in india, but now scenario has been changed. Lot of jobs are...
75
by: kwikius | last post by:
My hunch is my posts to clc++ are disappearing down a hole, so I post here instead. Future of C++ thread on clc++ "Abhishek" <nospam_abhishekpandey@yahoo.comwrote in message...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.