This is a discussion on JDBC Intermediary within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I am trying to find a means of using php such that my java applet can query the php script ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to find a means of using php such that my java applet can query
the php script to perform sql instructions on a mysql database. I have been told this is a better means than trying to have the applet connect directly to the database. Does anyone have any php code for this, or know where I can find an example of this, or have any ideas on this whatsoever? Thank you kindly, Ike |
|
|||
|
"Ike" <rxv@hotmail.com> schreef in bericht news:9Umab.36874$NM1.720@newsread2.news.atl.earthl ink.net... > I am trying to find a means of using php such that my java applet can query > the php script to perform sql instructions on a mysql database. > > I have been told this is a better means than trying to have the applet > connect directly to the database. Does anyone have any php code for this, or > know where I can find an example of this, or have any ideas on this > whatsoever? > > Thank you kindly, Ike > > This is just a matter of requesting an url (e.g. an url to your php script on your server) form your applet. For example: From your applet you can request the server: http://www.yourserver.com/yourphpscr...def&value3=ghi In the PHP script you should perform the sql actions on your MySQL database. That is not so hard, just take a look at www.php.net Regards, Marcel |
|
|||
|
if you are using java,
you should avoid PHP and get into JSP... so you make a true 3 tiers web app... -- Salutations, Fred ! ICQ: 46063572 "Ike" <rxv@hotmail.com> a écrit dans le message de news: 9Umab.36874$NM1.720@newsread2.news.atl.earthlink.n et... > I am trying to find a means of using php such that my java applet can query > the php script to perform sql instructions on a mysql database. > > I have been told this is a better means than trying to have the applet > connect directly to the database. Does anyone have any php code for this, or > know where I can find an example of this, or have any ideas on this > whatsoever? > > Thank you kindly, Ike > > |
|
|||
|
Yes, but if I use php, I only need php and Apache on the Server...with Jsp
or servlet solution, I need to also have Tomcat and Java on the server. The former is a more portable solution. "Fritzoune" <webmaster@discopac.ch> wrote in message news:3f6c3881$0$3675$5402220f@news.sunrise.ch... > if you are using java, > you should avoid PHP and get into JSP... > so you make a true 3 tiers web app... > > > -- > Salutations, > > Fred ! > ICQ: 46063572 > "Ike" <rxv@hotmail.com> a écrit dans le message de news: > 9Umab.36874$NM1.720@newsread2.news.atl.earthlink.n et... > > I am trying to find a means of using php such that my java applet can > query > > the php script to perform sql instructions on a mysql database. > > > > I have been told this is a better means than trying to have the applet > > connect directly to the database. Does anyone have any php code for this, > or > > know where I can find an example of this, or have any ideas on this > > whatsoever? > > > > Thank you kindly, Ike > > > > > > |