wood burning stoves 2.0*
The moose likes Applets and the fly likes Java Class call on PHP script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Java Class call on PHP script" Watch "Java Class call on PHP script" New topic
Author

Java Class call on PHP script

Melanie Walsh
Greenhorn

Joined: Dec 14, 2004
Posts: 20
Hi
I am trying to build an application that calls on a php script.I do not want to use an applet. I can obtain the URl by using java.net and creating a URL object. What i really want to do is use a java application that stores information. Then calls a php script to execute, do all the web stuff and return values to my java application. The php stuff needs to be hidden from, view, can anyone advise me on this?
[ December 14, 2004: Message edited by: Melanie Walsh ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

First, welcome to the Java Ranch.
Second, you say you don't want to use an applet, yet you post in the Applet forum. Interesting. . .
Third, you are going down the right track. It is very common to have an application request information from a URL, maybe even POSTing data for the cgi-servlet-php to work on. The buzz word for such a thing is a "web service". There's a chapter in the Java Tutorial on Working with URL's that may be useful.


[How To Ask Questions On JavaRanch]
Melanie Walsh
Greenhorn

Joined: Dec 14, 2004
Posts: 20
Thanks Joe, will have a read through. It was my first posting and i mistakenly posted in this section then was unable to move. Have been reading up on web services thanks for your input was worried i was barking up the wrong tree.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

No worries. For future reference, you can delete your own posts. Click on the edit icon (looks like a pencil and paper at the top of your post, same line as the date and time). On the edit page there's a "Delete Post" checkbox.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java Class call on PHP script