Running a PHP driven page from JAVA
843789Mar 21 2009 — edited Mar 21 2009Hello, I'm fairly new to the JAVA programing environment, its kinda weird working in it after working all the time in ActionScript. Here is a straight forward question.
How do I run a html page, that has php on it from JAVA?
What I mean is, I have a php page with just php in it, and it runs a query to a php server to change a database from. The script will run if just put into the URL bar on any browser. The page doesn't actually display anything. So all I need it to do is to run.
Why would I want to do this. Well, I'm developing an application in flash that includes a contact list that is generated from a php page. One part of it, takes care of who's online or offline. Making sure that the person logging to display as 'online' is easy. But changing it back to 'offline' has been tricky for me; I can't get flash to run the page when the application is shut down(theres a way to run a function on quit, but it doesn't work with URLloading). But, I'm developing the application with a JAVA run media server called 'Red5'. Red5 is capable of running a function when the connected application quits and disconnects. So in that function, (if possible) I can run the page from there and everything would be fine.
Thanks for your help in advance.