installation problem windows 2003 and php 5
Posted: 2007-06-21T11:26:09-07:00
Please Help Me!
Running
Windows Server 2003
PHP 5.2.2
ImageMagick 6.3.4-10 Q16 Windows Static - Installed to c:\ImageMagick
Gave IUSR account read/execute permissions on c:\ImageMagick
Gave IUSR account read/execute permissions to c:\php\cmd.exe (
I copied c:\windows\system32\cmd.exe to c:\php)
php script (resize.php)
<?php
$cmd = "mogrify -geometry 80x60 C:\Inetpub\intranet\photos\logo.jpg";
exec($cmd);
?>
When the script is executed from the browser the image does not change size. If I call mogrify from the command line with the same parameters it resizes logo.jpg. If I call php from the command line to run resize.php it WILL resize logo.jpg
fyi - I do have php set to display errors and I am not getting any.
I have done many google searches for the past two days in attempts to find what I am missing to no avail.
Bill
Running
Windows Server 2003
PHP 5.2.2
ImageMagick 6.3.4-10 Q16 Windows Static - Installed to c:\ImageMagick
Gave IUSR account read/execute permissions on c:\ImageMagick
Gave IUSR account read/execute permissions to c:\php\cmd.exe (
I copied c:\windows\system32\cmd.exe to c:\php)
php script (resize.php)
<?php
$cmd = "mogrify -geometry 80x60 C:\Inetpub\intranet\photos\logo.jpg";
exec($cmd);
?>
When the script is executed from the browser the image does not change size. If I call mogrify from the command line with the same parameters it resizes logo.jpg. If I call php from the command line to run resize.php it WILL resize logo.jpg
fyi - I do have php set to display errors and I am not getting any.
I have done many google searches for the past two days in attempts to find what I am missing to no avail.
Bill