You don't have newlines in $cmd, do you??? Don't do that.
You may also need to http://php.net/setenv to set up PATH so that
identify.exe can find whatever filter/DLL/plug-in thingie it needs to find
to do EPS files, identify.exe uses that kind of "plug-in" architecture.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
----- Original Message -----
From: Jakob <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 9:14 AM
Subject: Problem with ImageMagick and PHP on Windows
>
> Hi,
>
> I need to retrieve image properties from an EPS graphic. therefore I
installed
> ImageMagick on Windows.
>
> This command works very well on the commandline:
> C:\>C:\imagemagick\identify.exe -ping -format "%m %f %b %w %h %x %y"
http://ws-
> tgljfix/upload/pusunybkvv.eps
>
> However, when executed through PHP (from inside an object):
>
> ...
> $cmdline = $this->_imagemagick_identify .
> sprintf($this->_imagemagick_identify_flags, $this->_imgfile);
>
> /* commandline is now:
> "C:\imagemagick\identify.exe
> -ping
> -format \"%m %f %b %w %h %x %y\"
http://ws-tgljfix/upload/pusunybkvv.eps"
> */
>
> $res = `$cmdline`;
> ...
>
> It doesn't generate any output, but appends the following error message to
the
> Apache error log:
>
> [Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify:
Postscript
> delegate failed [No such file or directory].
>
> [Fri Sep 21 15:13:30 2001] [error] [client xxx.xx.x.xx] identify: Missing
an
> image file name.
>
> How can I make this work through PHP on Windows? Thanks for your help.
CC to
> my email appreciated, as I am on the digest list.
>
> Thanks,
> Jakob.
>
>
>
> Jakob - icq #69728667
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]