LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-09-2005, 10:26 AM   #1
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Rep: Reputation: 33
Question about PHP vs. JSP


Okay, I've taken it upon myself to introduce the first PHP-based
application written for my work site. (Far be it for me to rock the
boat...) Anyway, I went about it this way. This will be hosted on our third (or fourth) Linux server (running SLES).

1. I spent a week writing up a replacement PHP/Apache/MSSQL application
which is faster and more customized than the vendors
JSP/JAR/XML/Tomcat/MSSQL application.

2. I showed it to my immediate supervisor and co-project manager, who both
had a cow and then conceded that it was a great idea.

3. We then showed it to our division manager who wasn't thrilled but agreed
it should be okay.

I thought things were just fine.

Today I find out that the "technology committee" has poo-poohed the idea.
This committee was formed of mostly mainframe guys and a few c/s guys, most of whom really only know VB/ASP. Senior management also takes part.

They don't see why we should be using PHP. They want JSP. In fact, they
don't know why we don't use JavaScript to write the whole application. (I
mentioned that there is - in fact javascript in a few of the pages to
handle form events, but that went over their heads.)


So here's my question. Given that they want me to use JSP, should I agree? In my opinion, I see more interest in PHP. In fact, I now notice that Big Blue is supporting PHP.

http://www-306.ibm.com/software/data...ndcore/pr.html


I particularly think that JSP is on the "outs" and that PHP will prevail
over JSP. They argue that I should be using Java, which I counter is a
server-side component to be used regardless of the scripting language.

What do you all think? Am I nuts? Okay, scratch that. Am I wrong in wanting
PHP over JSP?

Personally I like it better than JSP and feel it has a brighter future, especially since IBM is now pushing it. (We're an IBM
shop with an outgoing s390 and in incoming z890 and who knows how many AS400s.)
 
Old 06-09-2005, 02:38 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i had the option of choosing from PHP and JSP/J2ee in my last course

since i had dome some of PHP i went with PHP
hat i have seen is that PHP does not support natively the 3 tier architecture
u can implement that in 3 tier architecture bit basically PHP is for 2 tier architecture

but again PHP is very easy to use and configure so i prefer PHP

regards
 
Old 06-09-2005, 03:56 PM   #3
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
Hi,

I think it's mostly a matter of taste. Many people like php other like java (so jsp). I didn't study throughly both, but I'm a Java fan...

Of course you can do terrible things in either php or jsp. Just because someone (or even yourself) doesn't know something it doesn't mean it is bad.

For me, besides Java language which I find very clean (cleaner than php for what I saw), one advantage would be the huge number of libraries available for java (networking, xml, image generation, graphs, charts, object/relational mappings, etc.). Also there are nice ide, debuggers (for web pages) and many servers to choose from.

So everybody is right....
 
Old 06-09-2005, 03:59 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
yes its all about tastes

there are advantages and disadvantages of both of them

regards
 
Old 06-09-2005, 04:48 PM   #5
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
The position you're in seems quite impossible. You could convince them php is the right tool to use in this situation, but will they understand? They should convince you jsp is the right tool for the job, but they seem to lack the knowledge to support it.

Demonstrate the strength of your php solution and don't be defensive about it. Keep the comparison fair and straight forward so even an assh*le would understand. I have little regard of management as you may notice. I personally think people with real knowledge should run things.
 
Old 06-09-2005, 05:33 PM   #6
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 33
Thank you all - valid points.

I've become fairly confident with Java in the past few months, having just finished three semesters of it at the university. In fact, I can see many instances where I'd use Jave over other languages. I can also see where a JSP solution might be in order. The n-tier example mentioned is a good one. If a mutit-tier approach is needed for a high-volume applicaiton, then I would have no problems. this application will probably only have a few thousand transactions per workday.

On to the next issue....why doen't lineak work for me...
 
Old 06-10-2005, 03:25 AM   #7
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
what is lineak?
 
Old 06-10-2005, 12:28 PM   #8
PerfectReign
Member
 
Registered: Apr 2005
Location: Los Angeles
Distribution: openSUSE / Ubuntu
Posts: 294

Original Poster
Rep: Reputation: 33
Quote:
Originally posted by masand
what is lineak?
Glad you asked: Linux support for Easy Access Keyboards.

http://lineak.sourceforge.net/

This is a project to get the multimedia keyboards working under Linux. I have a Logitech multimedia keyboard. I was able to open Thunderbird, Firefox, change volume, mute all from the keyboard. Can't now.

I'll figure it out eventually.
 
Old 06-10-2005, 12:42 PM   #9
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
thanks for the link

i had many people asking me for any such support i can now guide them
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
DISCUSSION: Virtual Webhosting on Linux for support of php+mysql+jsp+servlets newpenguin LinuxAnswers Discussion 1 02-20-2005 01:51 PM
whats better: PHP vs JSP yanix Linux - Software 2 11-15-2004 04:07 AM
Basic JSP/Tomcat question. CodeWarrior Programming 1 07-06-2003 09:15 AM
javascript or jsp question doublefailure Programming 1 11-13-2002 12:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:52 AM.

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