LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2004, 12:26 AM   #1
yanix
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
whats better: PHP vs JSP


I need to make a simple site that allows people to make
submissions into a DB, and
also allows people to call the page and have it bring up
simple user details from a DB.
This site is going to potentially have high volume periods.
So speed is very important to me.
(the site is not complex, I do not need additional management layers like apache sturts etc, its only the performance during high volume that is important)

I know both JSP and PHP can do this job.
I am very new to PHP

Does anyone know if one technology is by far the superior choice for my scenario?

I suppose using JSP would need the JVM and tomcat, is that going to have a huge impact on performance?

Does PHP get recompiled every request (or can it be made not to)?

Is the method PHP uses to connect to the DB faster than the JDBC connection method used in java?

Would postegres a better choice for the database as opposed to say MySQL?

If anyone has any feedback it'd be much appreciated.
 
Old 11-12-2004, 02:43 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Well, I would use JSP, tomcat and postgres, but mostly for personal reasons.

Why JSP? I don't really like the syntax of PHP (for example the unability to arbitrarily operate with return values of functions without temporal variables makes me mad (and code messy)). But still, PHP could succeed from the same tasks as well as JSP.

Why postgres? I don't really like MySql. I have problems with the access model and the subset of SQL it supports.

Why tomcat? Well, it is somewhat nightmare to configure, but I haven't found anything nicer yet.

What comes to JDBC, I don't think it comes to a performance issue. If you keep persistent connections then there is no initialization overhead.
 
Old 11-15-2004, 04:07 AM   #3
TheOracle
Member
 
Registered: Nov 2004
Posts: 87

Rep: Reputation: 15
Mysql Java Tomcat

Please give us some tips on installing and configuring Tomcat.
Also what is the difference in the versions? v.5.x.x has more components than previous versions.

I have installed MySql, the reason is it's compact, well used / documented and something I haven't used.
Java Standard Edition (JSE) - again, well documented and well used. Further than that I know very little about java and working in the dark.
At the mo I'm busy with the connector/J and connecting java to mysql.

Something else. Check out Oracle, 9iAS with Java...
It is after all the fastest db


Cheers
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Php in a Java jsp file Ziggie Programming 1 11-30-2005 06:31 AM
Question about PHP vs. JSP PerfectReign Programming 8 06-10-2005 12:42 PM
DISCUSSION: Virtual Webhosting on Linux for support of php+mysql+jsp+servlets newpenguin LinuxAnswers Discussion 1 02-20-2005 01:51 PM
whats the problem with rh8 and apache2/php? bigswifty75 Linux - Newbie 8 07-03-2003 03:47 AM
VB to JSP jayakrishnan Linux - General 3 05-08-2002 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration