Re: running exec() on client
| From: | Roman Neuhauser | Date: | Tue, 16 Jan 2007 16:52:47 +0000 |
| Subject: | Re: running exec() on client | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247161@lists.php.net to get a copy of this message | ||
# 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