I don't neccessarily WANT to mix the 2 languages.  I just have an
application on my webserver that uses MySQL databases and the script is all
written in PHP (which I am pretty good at).  The only reason I want to use
JAVA is so a user can download and install a program that I write (since
JAVA is platform independant) that they can run on their local computers.
This JAVA program will connect to the server (PHP files) and send back all
the information to the JAVA app.  This way, the user doesn't even have to go
to the website for this script.  They can just open the JAVA program and it
will be passed all the neccessary information.  I'm just a beginner in JAVA,
so it will probably take me quite a while to figure out how to build a whole
program like this.  Eventually, I want it to be similar to the Gallery
Remote program (found at:  http://gallery.menalto.com/) for a PHP image
gallery.  I got a long way to go before I will have this created though,
since I'm very new to JAVA (I'm much stronger in PHP).  Anyway, I'm sure you
get the idea.

Matt


"Raditha Dissanayake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> For this scenario, Ray's suggestion of SOAP is IMHO the best option. But
> just out of curiosity why do you want to mix the two languages? If you
> are familiar with java you might be better off doing your server side
> stuff using J2EE. Then you might be able to use
> Object Streams for your communications or RMI. Then there is the
> XMLEncoder class that was made availble with 1.4
>
> better stop before someone shoots me down this is a PHP list after all :-)
>
>
>
> Matt Palermo wrote:
>
> >I have been searching the web for ways to execute remote PHP files
through
> >the use of JAVA code, but I haven't had any luck.  I have found many ways
to
> >call JAVA functions from a PHP script, but not the other way around.
What
> >I'm trying to accomplish is I want to build a JAVA application that will
be
> >run from a users local computer after installation and this JAVA program
> >will connect to a url on my server (a url to a PHP script).  This PHP
script
> >will be used to connect to the server's MySQL database and send some
> >retrieved information back to the JAVA application on the users machine.
I
> >have been searching the web for hours trying to find a tutorial, or
advice
> >on how to accomplish this, but so far I have had no luck.  If anyone has
any
> >advice or suggestions please let me know.
> >
> >Thanks,
> >
> >Matt
> >
> >
> >
>
>
> --
> Raditha Dissanayake.
> ------------------------------------------------------------------------
> http://www.radinks.com/sftp/          |  http://www.raditha/megaupload/
> Lean and mean Secure FTP applet with  |  Mega Upload - PHP file uploader
> Graphical User Inteface. Just 150 KB  |  with progress bar.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to