Results 1 to 6 of 6
  1. #1
    jop007 is offline Member
    Join Date
    Jul 2012
    Posts
    1
    Rep Power
    0

    Default Convert Java to PHP

    Hi,

    I hope this post can be handed on a forum and not pinpointing me to a PHP forum where they point me to Java forum.

    We have 31 java files on the JSP/J2EE environment.
    I like to convert it to PHP to make hosting easier and have more potential customers.

    Are there tools available?

    We use jdbc to talk to the database we support 4 DB types but for PHP Mysql would be sufficient.

    John

  2. #2
    cselic is offline Senior Member
    Join Date
    Apr 2010
    Location
    Belgrade, Serbia
    Posts
    278
    Rep Power
    5

    Default Re: Convert Java to PHP

    ^
    "Converting one to the other is not quite possible yet. The good news though is that Java and PHP classes can be integrated together to form efficient applications, such as for sales tax calculation. The main script to be used for this PHP-Java integration project is PHP script and the compiler will be Java."

    This link might be helpful:
    How to Convert From Java to PHP | eHow.com

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

    Default Re: Convert Java to PHP

    I doubt it, as Java and PHP are very different.
    This will be a manual operation.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,907
    Rep Power
    5

    Default Re: Convert Java to PHP

    Pfffffff, go kid someone else.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    938
    Rep Power
    2

    Default Re: Convert Java to PHP

    I would think it's much easier to create a new application in PHP that does the same as the Java application. After all, it's only 31 files (pages?). You can write PHP in a sort of object oriented style. It's not going to be pretty, but hey, it's PHP. It will *never* be pretty :) Trying to convert it 1-to-1 will never happen (properly) and manual changes must always be made. So why not do it right the first time. After all, you are a coder, right?

    If you are successful though, please share your experience here.

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: Convert Java to PHP

    Quote Originally Posted by gimbal2 View Post
    Pfffffff, go kid someone else.
    The spammer you responded to has gone the way of all spammers.

    Closing this spam magnet.

    db

    THREAD CLOSED
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How Do I: Convert to Java
    By mexists in forum New To Java
    Replies: 3
    Last Post: 11-29-2011, 02:50 AM
  2. Convert PDF to Excel in Java?
    By Aschee in forum Advanced Java
    Replies: 2
    Last Post: 05-03-2011, 11:12 PM
  3. how to convert * into : using java
    By Ricks in forum New To Java
    Replies: 2
    Last Post: 02-02-2010, 04:57 PM
  4. Convert .java to .exe
    By susan in forum New To Java
    Replies: 6
    Last Post: 02-11-2009, 06:47 AM
  5. Convert java to .exe
    By heartysnowy in forum New To Java
    Replies: 13
    Last Post: 11-21-2008, 08:16 AM

Tags for this Thread

Posting Permissions

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