Re: exec() QUESTION

From: Date: Fri, 02 May 2003 23:07:01 +0000
Subject: Re: exec() QUESTION
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146210@lists.php.net to get a copy of this message
Hmmm...good point. I'll check that out Thanks! - MD On Friday, May 2, 2003, at 02:27 PM, Ernest E Vogelsinger wrote:
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/
Mike Dunlop Webmaster - AWN, Inc. [E] webmaster@awn.com [P] 323.606.4237 [F] 323.466.6619

« previous php.general (#146210) next »