Hi,
I am running imagemagick from php as shell commands i.e. using exec function.
I would like to be able to see all imagemagick errors but can't see how. Is there a way if verbose is specified that the verbose comments can be saved off to a log file that I can read?
Or perhaps another way to do this?
From within php would be preferable..off to text file I can read outside.
Thanks
can verbose output be saved to an error log - shell php
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: can verbose output be saved to an error log - shell php
I don't know much about doing it in PHP, but from the command line this seems to work:
echo "$(convert rose.png -verbose info:)" > rose_verbose.txt
echo "$(convert rose.png -verbose info:)" > rose_verbose.txt
Re: can verbose output be saved to an error log - shell php
Thanks very much - this works from within php.
Anyone else's tips on logging the running and errors i.e. general comments and debugging of imagemagick shell commands from within php ??
ta
Anyone else's tips on logging the running and errors i.e. general comments and debugging of imagemagick shell commands from within php ??
ta