Great to hear that PHP is your language of choice. There are several SOAP libraries available and they come with good docs. However if you are building an image gallery type application, you will be able to do mos of the work just by using java.net package has has been pointed out.
all the best
Matt Palermo wrote:
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,through
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
tothe use of JAVA code, but I haven't had any luck. I have found many ways
Whatcall JAVA functions from a PHP script, but not the other way around.
beI'm trying to accomplish is I want to build a JAVA application that will
scriptrun 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
Iwill be used to connect to the server's MySQL database and send some
retrieved information back to the JAVA application on the users machine.
advicehave been searching the web for hours trying to find a tutorial, or
anyon how to accomplish this, but so far I have had no luck. If anyone has
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.
-- 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