If I go to the command line and enter the code it works
Code: Select all
/usr/bin/convert -fill yellow -pointsize 30 -draw 'text 10,10 "message_here"' /home/domain/public_html/files/image.jpg /home/domain/public_html/files/anno-image.jpg
Code: Select all
$string = "
\/usr\/bin\/convert -fill yellow -pointsize 30 -draw 'text 10,10 \"message_here\"' \/home\/domain\/public_html\/files\/image.jpg \/home\/domain\/public_html\/files\/anno-image.jpg"
exec($string);
It does not work and it is dumping core.98327 files in my html directory?
(with multiple files per operation and varying serial numbers)
Any ideas?
Do I need to enter carriage returns in the shell command
Can this be encoded into the string as escaped characters?
Is exec the proper command -- do I need shell_exec? or system(), or other command?
I am trying to implement this on multiple servers and want to limit the wholes that have to be opened and limit the dangerous php fcns that need to be used...