File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8836
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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: 8836
    
    7

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.
 
jQuery in Action, 2nd edition
 
subject: Java Class call on PHP script
 
Similar Threads
JBoss running ?
Hot to execute php from java api
Struts 2 and PHP Integeration
PHP\Java Bridge
Getting Previous Date