473,385 Members | 1,341 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,385 software developers and data experts.

PHP vs Java performance on MySQL

Does PHP work better than Java with MySQL? What are pros and cons of using
PHP vs Java? Which one is faster?
Can someone share the experience or point me to some good white papers or
benchmarks? Thanks.
Jul 16 '05 #1
2 7140
I can't really give you details because I never made any benchmarks, but
I don't think there is any difference. PHP uses the MySQL client
library, and if you use native JDBC drivers for MySQL, you end up using
the exact same library. In both cases, the slow down does not come from
the client library anyway, it comes from the server actually processing
the request (which isn't long anyway, in most cases).

At that level, the language you choose for your application is a matter
of convenience.

--
Louis-Philippe Huberdeau

Rajesh Kapur wrote:
Does PHP work better than Java with MySQL? What are pros and cons of using
PHP vs Java? Which one is faster?
Can someone share the experience or point me to some good white papers or
benchmarks? Thanks.


Jul 16 '05 #2
"Rajesh Kapur" <rk****@mpr.org> wrote in message news:<3f*********************@newsreader.visi.com> ...
Does PHP work better than Java with MySQL? What are pros and cons of using
PHP vs Java? Which one is faster?
Can someone share the experience or point me to some good white papers or
benchmarks? Thanks.

I wrote a content management system in PHP/MySQL to work in hosted
environments on a variety of machines. But now I have my own server to
work with. I'm wondering if the CMS would run faster if I rewrote it
in Java? I wrote the CMS mostly as OO, so it would be fairly easy to
port, I think.
Jul 16 '05 #3

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

Similar topics

11
by: Lem | last post by:
I get the error Exception in thread "main" java.lang.NoClassDefFoundError when I type java app2 in the command prompt. I've tried moving to the jre directory and typed java c:\app2\app2, but it...
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...
5
by: TZESENG | last post by:
DECEMBER 13, 2005 . Editions: N. America | Europe | Asia | Edition Preference News Analysis By Steve Hamm Source: http://www.businessweek.com/technology/content/dec2005/tc20051213_042973.htm...
1
marcbachman
by: marcbachman | last post by:
Hello- I hope to have a touchscreen Java application soon that will display images and text fetched from a MySQL database. ( terminal runs the application on a remote server on the LAN ) I have...
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: nickyeng | last post by:
imageValue=null SEVERE:--> com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'Gout_msgtext' cannot be null at...
8
by: ajos | last post by:
hi frnds, im trying to convert my servlets database configuration from ms access to mysql database.however im getting some error like no driver found exception. to verify this error ive...
66
by: flarosa | last post by:
Hi, I'm wondering if I can get a reasonably civil (without starting any huge wars) opinion on how server-side PHP compares to server-side Java. I've been strictly a Java developer for almost...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.