SitePoint Sponsor

User Tag List

Page 4 of 6 FirstFirst 123456 LastLast
Results 76 to 100 of 127

Thread: PHP vs. JSP

  1. #76
    Non-Member
    Join Date
    Nov 2002
    Location
    Earth
    Posts
    1,107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then why would you even consider VB6?

  2. #77
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I said that I have been considering it for a long time now but haven't been able to find time to brush my skills in VB6.
    Its just now that I think I can spare some time each week(by sleeping less ), so I thought of having a go at it. And my friend & collegue told me to consider .NET instead & have a go at it.
    Looks like its the best advice he's given me ever.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  3. #78
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how'd we get to MCAD and VB6 in a thread about JSP vs PHP ? ... oh thats right

  4. #79
    SitePoint Wizard gold trophysilver trophy
    Join Date
    Nov 2000
    Location
    Switzerland
    Posts
    2,479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Going back the original question, here's a blog by a Java developer: PHP Web Projects Continue to Impress Me.

    That about sums it up.

    Java as a web platform is popular with companies that pay good salaries (while PHP isnt) so if you're thinking along that lines, it's a good choice. Be warned though, in learning Java the first hurdle is;

    In Java, String objects are immutable...
    Otherwise, if you're actually interested in building a website, choose PHP.

  5. #80
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    During the last few weeks, I've been looking into Java as a platform, priming for my move to Mac. It looks like Java/JSP is not as good as ASP.NET for web development, however, there is something for Java that negates that... Coldfusion MX. Coldfusion is no longer it's own language, but a productivity layer on top of Java, and it actually looks really, really good. Maybe even better than ASP.NET - haven't decided yet. Check out the technology introduction video on Macromedias web site.

    Also, Ben Forta, their technology evangelist, looks really cool.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  6. #81
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cold Fusion on a Mac ... in 12 months that picture might just be you Mattias

  7. #82
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by M. Johansson
    Coldfusion
    Why'd you have to bring that into the conversation?

    But yeah, CF is actually pretty easy, depending on how you take to a tag-based syntax. Its bigger strengths (in CFMX anyway) are Flash Remoting and being able to communicate with Java objects, so you can still keep your business logic in classes and out of .cfm pages and you can still use Web services .

  8. #83
    Non-Member coo_t2's Avatar
    Join Date
    Feb 2003
    Location
    Dog Street
    Posts
    1,819
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    So is CF written in Java. Can you drop down and code in Java if you want?

    --ed

  9. #84
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by coo_t2
    So is CF written in Java. Can you drop down and code in Java if you want?
    Yep. Then you can call the Java object from CF.
    http://www.markme.com/cantrell/archives/003224.cfm

  10. #85
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think that Java classes can be used instead of Component DLLs with ASP if Microsoft JVM is installed on the server. I read something about it on the 4Guysfromrolla website sometime back, however I was pre-occupied with something else & didn't follow it.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  11. #86
    SitePoint Wizard gold trophysilver trophy
    Join Date
    Nov 2000
    Location
    Switzerland
    Posts
    2,479
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    During the last few weeks, I've been looking into Java as a platform, priming for my move to Mac. It looks like Java/JSP is not as good as ASP.NET for web development, however, there is something for Java that negates that... Coldfusion MX. Coldfusion is no longer it's own language, but a productivity layer on top of Java, and it actually looks really, really good.
    Think MAC is become a very popular platform with developers - kind of a compromise (or best of worlds) between Linux and Windows. If I could spare the cash...

    You might also want to look into Java Server Faces (there's a tutorial somewhere on Suns site) which is meant to be Suns answer to ASP.NET.

    Coldfusion...? Sounds like you're about to go full circle, when you discover that Macs come with PHP pre-installed Interesting is Macromedia are another of the companies working with Sun on that spec I mentioned.

  12. #87
    Non-Member
    Join Date
    Nov 2002
    Location
    Earth
    Posts
    1,107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the job market like for somebody who has only a .Net MCSD?

  13. #88
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by HarryF
    If I could spare the cash...
    Yeah, I've wondered all these years that why people shell out a bomb for something with just good looks, & low software & other support on everything. Then I had a go at an old Mac some 3-4 years back & I was even more convinced that this is something I don't want.
    But then after a look at the new OS X Panther, & the new Apple Notebook, I thought, "hey, this thing is sure flashy enough, it sure is one of most beautiful things on the planet".

    But right on there Harry, Macs do cost a bomb.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  14. #89
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by csn
    What's the job market like for somebody who has only a .Net MCSD?
    Only a .NET MCSD & no other qualification? Dunno, but may have some worth since a lot of employers looking for .NET coders won't mind, unless they get an applicant who also has something other than .NET.

    As far as I've seen, a lone qualification doesn't have any weight for you if you are looking for a job. Guys with multiple skills(& specialisation in 1 or 2) will always be preferred. So, something more than just a single qualification improves your chances in the Job Market.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  15. #90
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by asp_funda
    Yeah, I've wondered all these years that why people shell out a bomb for something with just good looks, & low software & other support on everything. Then I had a go at an old Mac some 3-4 years back & I was even more convinced that this is something I don't want.
    But then after a look at the new OS X Panther, & the new Apple Notebook, I thought, "hey, this thing is sure flashy enough, it sure is one of most beautiful things on the planet".

    But right on there Harry, Macs do cost a bomb.
    They are not THAT expensive, when you consider the amount of software included and the quality of the hardware. But yeah, they are not exactly low-end. Anyway, I'm really tired of failing hardware, incompatible drivers, and relatively lame operating system of PCs. I'm willing to give Macs a go to see if they are better at it.

    You might also want to look into Java Server Faces (there's a tutorial somewhere on Suns site) which is meant to be Suns answer to ASP.NET.
    JavaServer Faces is really a step in the right direction. Is there an IDE that handles them well yet?
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  16. #91
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by M. Johansson
    JavaServer Faces is really a step in the right direction. Is there an IDE that handles them well yet?
    The spec isn't final yet, so I'd have to guess that no IDE uses it yet.
    http://java.sun.com/j2ee/javaserverfaces/index.jsp

  17. #92
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    What about Oracle JDeveloper?

    Edit:


    Doesn't the latest version support JavaServer Faces?
    Last edited by asp_funda; Feb 9, 2004 at 13:47.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  18. #93
    FreeBSD The Power to Serve silver trophy pippo's Avatar
    Join Date
    Jul 2001
    Location
    Italy
    Posts
    4,514
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M. Johansson
    During the last few weeks, I've been looking into Java as a platform, priming for my move to Mac. It looks like Java/JSP is not as good as ASP.NET for web development, however, there is something for Java that negates that... Coldfusion MX. Coldfusion is no longer it's own language, but a productivity layer on top of Java, and it actually looks really, really good. Maybe even better than ASP.NET - haven't decided yet. Check out the technology introduction video on Macromedias web site.

    Also, Ben Forta, their technology evangelist, looks really cool.
    Thanks for the link,
    I cannot run CFMX on my celeron400/128mbram because it's slowed my machine.
    ( in fact I'm running out of their requirements )

    Mattias,
    are you going to blog somewhere your Mac/CF experience ?
    That'd be cool, IMHO.



    Andrea
    Mr Andrea
    Former Hosting Team Advisor
    Former Advisor of '03

  19. #94
    SitePoint Wizard Mike Borozdin's Avatar
    Join Date
    Oct 2002
    Location
    Edinburgh, UK
    Posts
    1,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ha-ha! We are here in on www.SitePoint.com, on the site that is dedicated to web-design, web-coding, web-promotion and etc., but it wasn't planned to be a general development site where you can discuss programming languages and technologies that are used for creating descktop, server and other software, of course you can still discuss server-side technologies there but mainly people would discuss developing big applications and not home-made scripts.
    But now I want to point out the following things:

    • Java servlets/JSP hosting isn't more expensive than simple Unix hosting is, for example but HSP has servelets/JSP powered by Resin engine and I pay just $72 a year for 60 MB with JSP, servlets, PHp, Perl, Python, MySQL, PgSQL, SSH
    • I noticed that people who defended PHP didn't mention a very importand thing - PHP is very easy at deployment - all you need is a webserver and PHP intepreter, of course you can say that if you want to use Java it won't require to much software to install - JDK, J2EE application server, but you have to have to deal with JDBC drivers of your database, then you have to recompile your Java classes when or even re-pack it to Java archives when modifying it and so on.
    • PHP lacks standarts and decent frameworks? I think when a team develops a corporate portal that intoduce their own coding standarts and their framework that they use in many corporate applications.
    • Then if the man who asks about PHP and JSP wants to develop applications for money, I would suggest to advise him to learn that technology that can bring him good money, so PHP isn't a good choice from this point of view

  20. #95
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Good on there Mike!!

    But you jumped up on Java a bit. Pre-Compiled JDBC drivers are available. You just have to place them in the required dir.
    Most JDBC drivers come with the Tomcat binaries. Just mySQL needs to be obtained from www.mysql.com.

    Also, only Servlets need to be compiled & uploaded again. That's why people are switching for JSPs. Its also compiled in a servlet but only by the Server & that too, only once. And they are easy to maintain.

    I prefer JSP over PHP, but that may be b'coz I know JSP better & I'm barely PHP literate.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  21. #96
    SitePoint Wizard Mike Borozdin's Avatar
    Join Date
    Oct 2002
    Location
    Edinburgh, UK
    Posts
    1,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by asp_funda
    Also, only Servlets need to be compiled & uploaded again. That's why people are switching for JSPs. Its also compiled in a servlet but only by the Server & that too, only once. And they are easy to maintain.
    But I know that JSP & servlets is a great bundle, especially when you implement MVC pattern, so you use JSP for the view layer and retrieve most of data by using Java Beans.

  22. #97
    SitePoint Wizard Mike Borozdin's Avatar
    Join Date
    Oct 2002
    Location
    Edinburgh, UK
    Posts
    1,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Then, if you use only JSP without servlets and Beans, there's nearly no difference between your JSP and PHP, they are both can be mixed with HTML, they don't require compilation and so on. Sure, JSP is Java and you use Java class library andJSP must be faster than PHP, but if you speak about differences between programming techniques you use when you code with JSP and PHP, I will tell you that there's no difference between coding methods of these two technologies unless you use Beans and so on. But on other hand, those Beans can be implemended with PHP as well.

    Actually, it all depends on what you need to do, if you just need to create a script for your website, go with PHP and pure JSP, if you HSP has it, of course, but if you want to be become a professional developer who does it for money, don't waste your time on learning PHP, you will pick it up if necessary later, but straightly go with JSP/servlets - you'll find a great job knowing these things, and if you are a project manager you should consider knownledge of your teams, their prior experience, platform and so on.

  23. #98
    SitePoint Wizard silver trophybronze trophy asp_funda's Avatar
    Join Date
    Jun 2003
    Location
    ether
    Posts
    4,427
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Ahem, a few points to clear Mike.

    Quote Originally Posted by Mike Borozdin
    Then, if you use only JSP without servlets and Beans, there's nearly no difference between your JSP and PHP, they are both can be mixed with HTML, they don't require compilation and so on.
    Who said JSP isn't compiled? Wrong Wrong Wrong. JSP is COMPILED. Its using Java as its language & is not interpreted, its compiled. Ofcourse, we as developers, don't compile it. We just save the file as *.jsp & then call it through browser. Now the Server(like Tomcat) compiles the JSP file only if its been changed since its last change. Its compiled into a class file(a servlet) & then its code is parsed to display results. Its just that the compiled class file is stored in a directory accessible to server only.


    Quote Originally Posted by Mike Borozdin
    Sure, JSP is Java and you use Java class library andJSP must be faster than PHP, but if you speak about differences between programming techniques you use when you code with JSP and PHP, I will tell you that there's no difference between coding methods of these two technologies unless you use Beans and so on.
    JSP is faster than PHP because when JSP files are called, the compiled servlets are used to send results to browser. That way, execution of code is fast since the servlet class file is already in binary form. While with PHP, its same as other scripted langs like ASP etc which are interpreted. These are parsed by the server everytime they are requested. They are first converted into binaries & then executed. So its a 2 step process & with compiled langs like JSP & ASP.NET, its a 1 step process.
    So you can guess which one is fast.
    Also, without beans too, JSP has great power, power of Java, which PHP lacks, ie., the power of a proper language.


    In a simpler tone, its
    Java was meant to be used on client machines & was made powerful just like other langs used on Desktops like C, C++, etc. It wasn't meant to be used like JSP/Servlets etc. But its used & thus it harnesses the power which was incorporated in it.
    PHP was meant to be built for server-side scripting just like ASP etc. So, not much power was incorporated in it, just like ASP etc.

    That's where it looses out, I think.
    Our lives teach us who we are.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Me - My Photo Blog - My Hindi Blog - My Blog
    iG:Syntax Hiliter -- Colourize your code in WordPress!!

  24. #99
    SitePoint Wizard Mike Borozdin's Avatar
    Join Date
    Oct 2002
    Location
    Edinburgh, UK
    Posts
    1,743
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by asp_funda
    Ahem, a few points to clear Mike.

    Who said JSP isn't compiled? Wrong Wrong Wrong. JSP is COMPILED. Its using Java as its language & is not interpreted, its compiled. Ofcourse, we as developers, don't compile it. We just save the file as *.jsp & then call it through browser. Now the Server(like Tomcat) compiles the JSP file only if its been changed since its last change. Its compiled into a class file(a servlet) & then its code is parsed to display results. Its just that the compiled class file is stored in a directory accessible to server only.


    JSP is faster than PHP because when JSP files are called, the compiled servlets are used to send results to browser. That way, execution of code is fast since the servlet class file is already in binary form. While with PHP, its same as other scripted langs like ASP etc which are interpreted. These are parsed by the server everytime they are requested. They are first converted into binaries & then executed. So its a 2 step process & with compiled langs like JSP & ASP.NET, its a 1 step process.
    So you can guess which one is fast.
    Also, without beans too, JSP has great power, power of Java, which PHP lacks, ie., the power of a proper language.


    In a simpler tone, its
    Java was meant to be used on client machines & was made powerful just like other langs used on Desktops like C, C++, etc. It wasn't meant to be used like JSP/Servlets etc. But its used & thus it harnesses the power which was incorporated in it.
    PHP was meant to be built for server-side scripting just like ASP etc. So, not much power was incorporated in it, just like ASP etc.

    That's where it looses out, I think.
    Thank you for your clarification!!!

  25. #100
    Non-Member coo_t2's Avatar
    Join Date
    Feb 2003
    Location
    Dog Street
    Posts
    1,819
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by asp_funda

    JSP is faster than PHP because when JSP files are called, the compiled servlets are used to send results to browser. That way, execution of code is fast since the servlet class file is already in binary form. While with PHP, its same as other scripted langs like ASP etc which are interpreted. These are parsed by the server everytime they are requested. They are first converted into binaries & then executed. So its a 2 step process & with compiled langs like JSP & ASP.NET, its a 1 step process.
    You got some benchmarks? I'd like to see JSP and ASP.NET benchmarked against PHP with the Zend Accelerator installed. If JSP and ASP.NET are faster, I bet the difference is negligible.

    --ed

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •