RE: [PHP] running exec() on client
| From: | George Pitcher | Date: | Tue, 16 Jan 2007 15:58:18 +0000 |
| Subject: | RE: [PHP] running exec() on client | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247163@lists.php.net to get a copy of this message | ||
Roman,
> -----Original Message-----
> From: Roman Neuhauser [mailto:neuhauser@sigpipe.cz]
> Sent: 16 January 2007 4:53 pm
> To: George Pitcher
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] running exec() on client
>
>
> # george.pitcher@ingenta.com / 2007-01-16 15:18:50 -0000:
> > > You do not need to have apache installed to run PHP you just need
> > > PHP-CLI (Command Line Interface)
> >
> > Yes, I do know that, but what I want is for my colleague to follow a
> > link on her web page that will trigger the php command, passing any
> > required parameters.
>
> You probably don't want to do that, at least not when you can't install
> a web server. Or was that ban Apache-specific?
>
> 1. Modify the PHP script to use $argv instead of $_GET/$_POST.
> 2. Install the CLI SAPI.
> 3. Write a small dialogue that prompts for whatever arguments using any
> of the languages available on Windows (Python would be ok) and start
> your PHP script from that, $argv populated from the form.
>
> Your colleague will see a usual buttons-sweet-buttons GUI application,
> you will be able to reuse the PHP script.
>
> --
> How many Vietnam vets does it take to screw in a light bulb?
> You don't know, man. You don't KNOW.
> Cause you weren't THERE.
> http://bash.org/?255991
>
I think it was any web server.
Thanks for the suggestion - I'll have a look at that.
Cheers
George