473,467 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

PHP vs JAVA

Hi All,

I have to build a web application for my project. This web application
will be basically calling some functions written in C/C++.
Basically, the process involves getting user input file, passing the
file information to the C/C++ function, Getting the result from C/C++
function etc.
Ultimate aim will be to create a web service using WSDL, XML etc.

It's actually more complex than it sounds.
My question is that which language should I choose - PHP or Java(JSP &
Servlets).
I have a bit of learning curve for Java stuff though.
Can anybody tell me which is the right way for me to go?
Thanks!
Jul 17 '05 #1
4 5075
Joe
In article <11*************************@posting.google.com> ,
ri*********@icn.siemens.com says...
It's actually more complex than it sounds.
My question is that which language should I choose - PHP or Java(JSP &
Servlets).
I have a bit of learning curve for Java stuff though.
Can anybody tell me which is the right way for me to go?
Thanks!

From what it sounds like, if PHP has less of a learning curve for you,
I'd go with PHP.


--
"It is impossible to be unjust or unfair to the rich and powerful"
-- Harry Britt
Jul 17 '05 #2
DJ Dev wrote:
Hi All,

I have to build a web application for my project. This web application
will be basically calling some functions written in C/C++.
Basically, the process involves getting user input file, passing the
file information to the C/C++ function, Getting the result from C/C++
function etc.
Ultimate aim will be to create a web service using WSDL, XML etc.

It's actually more complex than it sounds.
My question is that which language should I choose - PHP or Java(JSP &
Servlets).
I have a bit of learning curve for Java stuff though.
Can anybody tell me which is the right way for me to go?
Thanks!


Hi DJ,

I only code Java and PHP. (and some ASP, but I don't want to talk about
that)
My general advise would be: If you want a simple quick start, use PHP, no
question about it.

PHP is intiutive and give quick results, where Java needs a few months of
works before you get right on the track and made the mistakes you should
make before becoming a good Java-programmer.
J2EE is a lot more complicated and harder to learn than PHP.
BUT... If you expect your application to grow, and become really complex,
Java will be a better choice.

By the description you give I would say: PHP.
PHP can handle your 'systemcalls' to C and can handle XML.

And PHP is getting more mature every release (dooh), they now have libaries
(PEAR) and such, making PHP a safe bet for the future too for you.

But I must say: I like Java more. :-)
Matter of taste, I guess.

Hope this helps. :-/

Regards,
Erwin

Jul 17 '05 #3
ri*********@icn.siemens.com (DJ Dev) writes:
Basically, the process involves getting user input file, passing the
file information to the C/C++ function, Getting the result from C/C++
function etc.
Two points for PHP: File upload comes standard with PHP. With Java you
need to go out and get a file upload servlet. For the C/C++ interface,
I don't know how it works in PHP, but it has to be better than JNI.
Ultimate aim will be to create a web service using WSDL, XML etc.

It's actually more complex than it sounds.


Only danger, then, is whether the C/C++ functions are safe to call from
multiple processes at the same time (or multiple threads in the case of
Apache 2).

If you've learned C, you should have no trouble with PHP. The things
that make PHP hard for newbies are a subset of the things that make C
hard for newbies.
Jul 17 '05 #4
ri*********@icn.siemens.com (DJ Dev) wrote in message
news:<11*************************@posting.google.c om>...

I have to build a web application for my project. This web application
will be basically calling some functions written in C/C++.
Basically, the process involves getting user input file, passing the
file information to the C/C++ function, Getting the result from C/C++
function etc.
Ultimate aim will be to create a web service using WSDL, XML etc.

It's actually more complex than it sounds.
My question is that which language should I choose - PHP or Java
(JSP & Servlets).


Why can't you just write the whole thing in C/C++? All you need
to figure out is how to get inputs via HTTP.

Also, if your ultimate goal is to create Web services, why don't
you take a look at readily available libraries for creating Web
services? PHP has NuSOAP, other languages have to have similar
things...

Cheers,
NC
Jul 17 '05 #5

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

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
1
by: ptaz | last post by:
Hi I'm trying to run a web page but I get the following error. Ca anyone please tell me a solution to this. Thanks Ptaz HTTP Status 500 - type Exception report
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: mailkhurana | last post by:
Hii , I am trying to use a type 2 driver to connect to DB2 0n AIX 5 I have a small java test to class to establish a conneciton with the db .. I am NOT using WAS or any appserver When I try to...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
12
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it...
0
by: jaywak | last post by:
Just tried running some code on Linux (2.4.21-32.0.1.EL and Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)) and Windows XPSP2 (with Java HotSpot(TM) Client VM (build...
1
by: jaimemartin | last post by:
hello, I want to validate an xml by means of a schema (xsd). To do that first of all I´m using a SchemaFactory. The problem is that if I run the code in Windows all works fine, but If I run it in...
0
oll3i
by: oll3i | last post by:
package library.common; import java.sql.ResultSet; public interface LibraryInterface { public ResultSet getBookByAuthor(String author); public ResultSet getBookByName(String name);
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
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,...
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
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.