RE: [PHP-WIN] Re: Can't get exec() to work
| From: | Mikey | Date: | Thu, 12 Jun 2003 11:35:17 +0000 |
| Subject: | RE: [PHP-WIN] Re: Can't get exec() to work | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-20289@lists.php.net to get a copy of this message | ||
From the online version of the manual:
"For users of PHP4 & Apache on Windows2000/XP:
If you're trying to execute a command-line application from PHP that has to
show a (console) window on your desktop, make sure you enable the option to
'allow service to interact with desktop' in de service properties of Apache.
(See your Windows services)
CAUTION: This can lead to security problems if your setting up a publicly
available webserver!"
HTH,
Mikey
> -----Original Message-----
> From: Marcus Haase [mailto:mail@marcus.haase.name]
> Sent: 12 June 2003 12:21
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Re: Can't get exec() to work
>
>
> I would suggest, that system() is only valid for command-line
> applications, calc.exe is a GUI-Application, so it won't work.
>
> Please, somebody correct me if I'm wrong, this is just what I experienced.
>
>
> Bill Szerdy wrote:
> > I am running Windows 2000 sp3, IIS5.0, PHP v4.3.2
> >
> > I can't get anything to execute from the exec() function calling from a
> > webpage but I can get it to work from command line.
> >
> > I have granted permissions to cmd.exe, copied cmd.exe to my php
> directory as
> > well as made sure safe_mode was off.
> >
> > When I call exec("calc.exe") from a webpage the page hangs
> indefinitly until
> > I kill the process.
> >
> > Any help would be appreciated
> >
> >
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>