Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Class call on PHP script

 
Melanie Walsh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Melanie Walsh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic