JDBC Intermediary

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-18-2003
Ike
 
Posts: n/a
Default JDBC Intermediary

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


Reply With Quote
  #2 (permalink)  
Old 09-19-2003
Marcel
 
Posts: n/a
Default Re: JDBC Intermediary


"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


Reply With Quote
  #3 (permalink)  
Old 09-20-2003
Fritzoune
 
Posts: n/a
Default Re: JDBC Intermediary

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
>
>



Reply With Quote
  #4 (permalink)  
Old 09-20-2003
Ike
 
Posts: n/a
Default Re: JDBC Intermediary

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
> >
> >

>
>



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:09 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0