Results 1 to 5 of 5
  1. #1
    Robert_85 is offline Member
    Join Date
    Mar 2009
    Posts
    27
    Rep Power
    0

    Default Java servlet VS. PHP!

    Hi,

    I really need help!:confused:

    I am currently working on a static website that is written in PHP, I want to add a shopping basket type mechanism to the website, where users select the web-pages they want and the page name and reference is get inserted into a basket (from which the pages can be removed upon the user selection) and then once submitted, the information is sent to the server from there other application might get called and the given information is manipulated.

    I was thinking of using Javascript/Ajax and Java servlets to do this, however as I am already using PHP to publish the web-pages, I was wondering if it is better to use PHP (instead of Java servlets) to do the server side programming of my shopping basket functionality??!!

    I mean does PHP have the potential to do that? And if so, then how easy is it to use PHP to do that?

    And will there be any technical or integration/compatibility issue if I use Java Servlet to do that considering the fact that I am already using PHP for the website publication?

    I really thank you if you could help me with this problem.

    Robert

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,802
    Rep Power
    19

    Default

    What does your PHP stuff do?
    I'm guessing "static" is a misuse of the term, since PHP is intended for dynamic pages.

    If you already have the storefront (if you like) in PHP, then I would argue that the rest should be PHP as well, just to ensure compatibility and reduced maintenance overhead.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Tolls View Post
    then I would argue that the rest should be PHP as well, just to ensure compatibility and reduced maintenance overhead.
    I'm totally agreed with you, those bad decisions make lots of compatibility as well as deployment issues. My recommendation also to move with PHP on rest of the stuff.

  4. #4
    Robert_85 is offline Member
    Join Date
    Mar 2009
    Posts
    27
    Rep Power
    0

    Default

    thank you guys,

    much appreciated

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

Similar Threads

  1. need help regarding java servlet.
    By ras_pari in forum Advanced Java
    Replies: 2
    Last Post: 03-25-2010, 10:45 AM
  2. how can i link html+servlet+xml to form servlet
    By balachandarr in forum Java Servlet
    Replies: 0
    Last Post: 04-15-2009, 04:06 PM
  3. Replies: 1
    Last Post: 12-02-2008, 12:23 AM
  4. Replies: 0
    Last Post: 08-30-2008, 11:52 AM
  5. Replies: 1
    Last Post: 08-07-2007, 03:47 PM

Posting Permissions

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