Re: exec() QUESTION
| From: | Ernest E Vogelsinger | Date: | Fri, 02 May 2003 21:27:30 +0000 |
| Subject: | Re: exec() QUESTION | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146205@lists.php.net to get a copy of this message | ||
At 22:44 02.05.2003, Mike D said:
--------------------[snip]--------------------
>This works perfectly from a command window but doesn't work from a php
>page, why?
>(Note: There is a path variable set for mogrify)
Is the path also set for the Apache execution environment?
>$cmd = "mogrify -resize 200x134 \"C:\\Apache\\myDocs\\myImage.jpg\"";
>exec($cmd , $results);
Does the Apache user have exec permission on mogrify? Does it have write
permossion on the particular image file?
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/