LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Question about PHP vs. JSP (https://www.linuxquestions.org/questions/programming-9/question-about-php-vs-jsp-331889/)

PerfectReign 06-09-2005 10:26 AM

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.)

masand 06-09-2005 02:38 PM

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

vladmihaisima 06-09-2005 03:56 PM

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.... :)

masand 06-09-2005 03:59 PM

yes its all about tastes

there are advantages and disadvantages of both of them

regards

Moloko 06-09-2005 04:48 PM

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.

PerfectReign 06-09-2005 05:33 PM

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...

masand 06-10-2005 03:25 AM

what is lineak?

PerfectReign 06-10-2005 12:28 PM

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.

masand 06-10-2005 12:42 PM

thanks for the link

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


All times are GMT -5. The time now is 08:57 PM.