To: Plugin Author, have you considered using shell_exec() on systems that disable exec?
@bohemiandiesel, if you have system access, check your php.ini for
disable_functions = exec,blah,blah,blah
Then you’d have to remove the ‘exec’ and restart apache.
If you are on a shared host, you should check with your hosting provider.
I found a typo on Centos. ini_get(‘disable_functions’) returns a csv list without spaces. So line 83 in cw-image-optimizer.php works when I implode without the extra space in the delimiter field. You may want to add some kind of array check.
$disabled = explode(',', ini_get('disable_functions'));