Re: shell expansion (globbing) from inside php cli script
| From: | Jasper Bryant-Greene | Date: | Tue, 28 Jun 2005 00:51:01 +0000 |
| Subject: | Re: shell expansion (globbing) from inside php cli script | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217725@lists.php.net to get a copy of this message | ||
Brian V Bonini wrote:
>>> I can echo out the command and get a well formed command, i.e.
>>> one that will execute from a command prompt, but when I try to
>>> exec() $cmd from within the script the globbing is taken
>>> literally.
Try shell_exec(). I don't think exec() goes via the shell.