Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #15931 > unrolled thread

Designing Java applets to work with PHP server scripts

Started by"K.J. Williams" <lordwilliams1972@gmail.com>
First post2012-07-10 15:42 -0700
Last post2012-07-26 08:46 -0400
Articles 15 — 4 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Designing Java applets to work with PHP server scripts "K.J. Williams" <lordwilliams1972@gmail.com> - 2012-07-10 15:42 -0700
    Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-10 19:27 -0400
    Re: Designing Java applets to work with PHP server scripts Roedy Green <see_website@mindprod.com.invalid> - 2012-07-11 21:18 -0700
    Re: Designing Java applets to work with PHP server scripts Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-12 14:58 +0100
      Re: Designing Java applets to work with PHP server scripts Roedy Green <see_website@mindprod.com.invalid> - 2012-07-12 22:07 -0700
        Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-23 21:33 -0400
      Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-23 21:33 -0400
        Re: Designing Java applets to work with PHP server scripts Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-24 11:59 +0100
          Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-24 15:51 -0400
            Re: Designing Java applets to work with PHP server scripts Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-25 09:48 +0100
              Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-25 11:17 -0400
                Re: Designing Java applets to work with PHP server scripts Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-25 16:20 +0100
                  Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-25 11:26 -0400
                    Re: Designing Java applets to work with PHP server scripts Nigel Wade <nmw@ion.le.ac.uk> - 2012-07-26 09:25 +0100
                      Re: Designing Java applets to work with PHP server scripts Arne Vajhøj <arne@vajhoej.dk> - 2012-07-26 08:46 -0400

#15931 — Designing Java applets to work with PHP server scripts

From"K.J. Williams" <lordwilliams1972@gmail.com>
Date2012-07-10 15:42 -0700
SubjectDesigning Java applets to work with PHP server scripts
Message-ID<4071bbb1-3c3e-4737-a79f-161c1e5a36cb@googlegroups.com>
I want to know, in general, how easy is it to design a Java applet to work with PHP for use on the internet? 

thanks

[toc] | [next] | [standalone]


#15932

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-10 19:27 -0400
Message-ID<4ffcba6b$0$286$14726298@news.sunsite.dk>
In reply to#15931
On 7/10/2012 6:42 PM, K.J. Williams wrote:
> I want to know, in general, how easy is it to design a Java applet to work with PHP for use on the internet?

Rather easy.

Applet with builtin (Http)URLConnection or Apache HttpClient or
another HTTP client lib and a PHP script returning XML/JSON/CSV
is very simple to implement.

Arne

[toc] | [prev] | [next] | [standalone]


#15973

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-07-11 21:18 -0700
Message-ID<vvjsv7p8unnlsdliejsf6vmcqfrl424cl4@4ax.com>
In reply to#15931
On Tue, 10 Jul 2012 15:42:44 -0700 (PDT), "K.J. Williams"
<lordwilliams1972@gmail.com> wrote, quoted or indirectly quoted
someone who said :

>I want to know, in general, how easy is it to design a Java applet to work with PHP for use on the internet? 

They have nothing to do with each other.  You trigger an Applet with
ordinary HTML.  You don't have to dynamically generate anything.

-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Mathematicians and computer scientists are far more interested 
in impressing you than informing you. If this were not
so, the tutorials on building a robots.txt file, for example,
would consist primarily of an annotated example. What you get 
instead are nothing but inscrutable adstract fragments in some 
obscure dialect of BNF.

[toc] | [prev] | [next] | [standalone]


#15979

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-07-12 14:58 +0100
Message-ID<a683h0FhofU1@mid.individual.net>
In reply to#15931
On 10/07/12 23:42, K.J. Williams wrote:
> I want to know, in general, how easy is it to design a Java applet to work with PHP for use on the internet?
>

You need to be more explicit. Java applets are normally delivered from a 
web server, and run client-side. PHP is a general purpose scripting 
language which happens to be used on some web servers for CGI and other 
server-side operations.

In what do you want an applet to "work with" PHP?

-- 
Nigel Wade

[toc] | [prev] | [next] | [standalone]


#15992

FromRoedy Green <see_website@mindprod.com.invalid>
Date2012-07-12 22:07 -0700
Message-ID<m7bvv798lk42od17tsa5rfs69eahha6dap@4ax.com>
In reply to#15979
On Thu, 12 Jul 2012 14:58:56 +0100, Nigel Wade <nmw@ion.le.ac.uk>
wrote, quoted or indirectly quoted someone who said :

>In what do you want an applet to "work with" PHP?

Maybe you mean have the applet send in transactions that look like CGI
forms?
-- 
Roedy Green Canadian Mind Products
http://mindprod.com
Mathematicians and computer scientists are far more interested 
in impressing you than informing you. If this were not
so, the tutorials on building a robots.txt file, for example,
would consist primarily of an annotated example. What you get 
instead are nothing but inscrutable adstract fragments in some 
obscure dialect of BNF.

[toc] | [prev] | [next] | [standalone]


#16284

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-23 21:33 -0400
Message-ID<500dfb75$0$290$14726298@news.sunsite.dk>
In reply to#15992
On 7/13/2012 1:07 AM, Roedy Green wrote:
> On Thu, 12 Jul 2012 14:58:56 +0100, Nigel Wade <nmw@ion.le.ac.uk>
> wrote, quoted or indirectly quoted someone who said :
>
>> In what do you want an applet to "work with" PHP?
>
> Maybe you mean have the applet send in transactions that look like CGI
> forms?

Forms are defined in the HTML standard not in the CGI standard.

Arne

[toc] | [prev] | [next] | [standalone]


#16283

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-23 21:33 -0400
Message-ID<500dfb55$0$290$14726298@news.sunsite.dk>
In reply to#15979
On 7/12/2012 9:58 AM, Nigel Wade wrote:
> On 10/07/12 23:42, K.J. Williams wrote:
>> I want to know, in general, how easy is it to design a Java applet to
>> work with PHP for use on the internet?
>
> You need to be more explicit. Java applets are normally delivered from a
> web server, and run client-side. PHP is a general purpose scripting
> language which happens to be used on some web servers for CGI and other
> server-side operations.
>
> In what do you want an applet to "work with" PHP?

Having an applet communicate with a web service is rather common.

Arne

[toc] | [prev] | [next] | [standalone]


#16299

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-07-24 11:59 +0100
Message-ID<a77dgmF43aU1@mid.individual.net>
In reply to#16283
On 24/07/12 02:33, Arne Vajhøj wrote:
> On 7/12/2012 9:58 AM, Nigel Wade wrote:
>> On 10/07/12 23:42, K.J. Williams wrote:
>>> I want to know, in general, how easy is it to design a Java applet to
>>> work with PHP for use on the internet?
>>
>> You need to be more explicit. Java applets are normally delivered from a
>> web server, and run client-side. PHP is a general purpose scripting
>> language which happens to be used on some web servers for CGI and other
>> server-side operations.
>>
>> In what do you want an applet to "work with" PHP?
>
> Having an applet communicate with a web service is rather common.
>

I know it is, but that is just one rather specific instance of "server 
scripts".

-- 
Nigel Wade

[toc] | [prev] | [next] | [standalone]


#16308

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-24 15:51 -0400
Message-ID<500efcb6$0$287$14726298@news.sunsite.dk>
In reply to#16299
On 7/24/2012 6:59 AM, Nigel Wade wrote:
> On 24/07/12 02:33, Arne Vajhøj wrote:
>> On 7/12/2012 9:58 AM, Nigel Wade wrote:
>>> On 10/07/12 23:42, K.J. Williams wrote:
>>>> I want to know, in general, how easy is it to design a Java applet to
>>>> work with PHP for use on the internet?
>>>
>>> You need to be more explicit. Java applets are normally delivered from a
>>> web server, and run client-side. PHP is a general purpose scripting
>>> language which happens to be used on some web servers for CGI and other
>>> server-side operations.
>>>
>>> In what do you want an applet to "work with" PHP?
>>
>> Having an applet communicate with a web service is rather common.
>
> I know it is, but that is just one rather specific instance of "server
> scripts".

But in the context of "Java applet to work with PHP" it is a pretty good 
fit.

Arne

[toc] | [prev] | [next] | [standalone]


#16333

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-07-25 09:48 +0100
Message-ID<a79q70F9sjU1@mid.individual.net>
In reply to#16308
On 24/07/12 20:51, Arne Vajhøj wrote:

>
> But in the context of "Java applet to work with PHP" it is a pretty good
> fit.
>

I would think CGI is a far more common fit than web service. But it 
would still be an assumption which may mean wasting time providing 
advice on heading down blind alleys. Better to get a more definitive 
context from the OP first (which has still not been provided).

-- 
Nigel Wade

[toc] | [prev] | [next] | [standalone]


#16343

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-25 11:17 -0400
Message-ID<50100e05$0$281$14726298@news.sunsite.dk>
In reply to#16333
On 7/25/2012 4:48 AM, Nigel Wade wrote:
> On 24/07/12 20:51, Arne Vajhøj wrote:
>> But in the context of "Java applet to work with PHP" it is a pretty good
>> fit.
>
> I would think CGI is a far more common fit than web service.

I can not see where CGI fits in.

Running PHP via CGI instead of FastCGI or Apache module is
not related to applets.

Arne

[toc] | [prev] | [next] | [standalone]


#16345

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-07-25 16:20 +0100
Message-ID<a7ah6oFkhtU1@mid.individual.net>
In reply to#16343
On 25/07/12 16:17, Arne Vajhøj wrote:
> On 7/25/2012 4:48 AM, Nigel Wade wrote:
>> On 24/07/12 20:51, Arne Vajhøj wrote:
>>> But in the context of "Java applet to work with PHP" it is a pretty good
>>> fit.
>>
>> I would think CGI is a far more common fit than web service.
>
> I can not see where CGI fits in.
>
> Running PHP via CGI instead of FastCGI or Apache module is
> not related to applets.

What?

--
Nigel Wade

[toc] | [prev] | [next] | [standalone]


#16346

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-25 11:26 -0400
Message-ID<50101044$0$281$14726298@news.sunsite.dk>
In reply to#16345
On 7/25/2012 11:20 AM, Nigel Wade wrote:
> On 25/07/12 16:17, Arne Vajhøj wrote:
>> On 7/25/2012 4:48 AM, Nigel Wade wrote:
>>> On 24/07/12 20:51, Arne Vajhøj wrote:
>>>> But in the context of "Java applet to work with PHP" it is a pretty
>>>> good
>>>> fit.
>>>
>>> I would think CGI is a far more common fit than web service.
>>
>> I can not see where CGI fits in.
>>
>> Running PHP via CGI instead of FastCGI or Apache module is
>> not related to applets.
>
> What?

I don't understand where CGI comes in.

We know we have applet and PHP.

Where does CGI get involved?

Arne

[toc] | [prev] | [next] | [standalone]


#16386

FromNigel Wade <nmw@ion.le.ac.uk>
Date2012-07-26 09:25 +0100
Message-ID<a7cd88FohgU1@mid.individual.net>
In reply to#16346
On 25/07/12 16:26, Arne Vajhøj wrote:
> On 7/25/2012 11:20 AM, Nigel Wade wrote:
>> On 25/07/12 16:17, Arne Vajhøj wrote:
>>> On 7/25/2012 4:48 AM, Nigel Wade wrote:
>>>> On 24/07/12 20:51, Arne Vajhøj wrote:
>>>>> But in the context of "Java applet to work with PHP" it is a pretty
>>>>> good
>>>>> fit.
>>>>
>>>> I would think CGI is a far more common fit than web service.
>>>
>>> I can not see where CGI fits in.
>>>
>>> Running PHP via CGI instead of FastCGI or Apache module is
>>> not related to applets.
>>
>> What?
>
> I don't understand where CGI comes in.
>
> We know we have applet and PHP.
>
> Where does CGI get involved?
>

If you use the applet to communicate with a CGI PHP script.

-- 
Nigel Wade


[toc] | [prev] | [next] | [standalone]


#16388

FromArne Vajhøj <arne@vajhoej.dk>
Date2012-07-26 08:46 -0400
Message-ID<50113c2d$0$287$14726298@news.sunsite.dk>
In reply to#16386
On 7/26/2012 4:25 AM, Nigel Wade wrote:
> On 25/07/12 16:26, Arne Vajhøj wrote:
>> On 7/25/2012 11:20 AM, Nigel Wade wrote:
>>> On 25/07/12 16:17, Arne Vajhøj wrote:
>>>> On 7/25/2012 4:48 AM, Nigel Wade wrote:
>>>>> On 24/07/12 20:51, Arne Vajhøj wrote:
>>>>>> But in the context of "Java applet to work with PHP" it is a pretty
>>>>>> good
>>>>>> fit.
>>>>>
>>>>> I would think CGI is a far more common fit than web service.
>>>>
>>>> I can not see where CGI fits in.
>>>>
>>>> Running PHP via CGI instead of FastCGI or Apache module is
>>>> not related to applets.
>>>
>>> What?
>>
>> I don't understand where CGI comes in.
>>
>> We know we have applet and PHP.
>>
>> Where does CGI get involved?
>
> If you use the applet to communicate with a CGI PHP script.

I still don't get it.

CGI is a protocol used between web servers and scripts/scriptengines.

You can do:

applet----(HTTP)----web server----(CGI)----PHP

or:

applet----(HTTP)----web server----(something else than CGI)----PHP

But whether PHP is integrated via CGI or FastCGI or Apache module
(in process call) does not impact how the PHP code looks and not
how the Java applet code look like - it is purely a server
configuration issue.

I don't think the original poster is asking on how to integrated PHP
with his web server.

Arne


[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web