Link to home
Start Free TrialLog in
Avatar of hankknight
hankknightFlag for Canada

asked on

exec() vs shell_exec()

What are the differnces between exec() vs shell_exec() in PHP?
Avatar of Ionut A. Tudor
Ionut A. Tudor
Flag of Romania image

excerpt from php manual:
exec  Execute an external program http://www.php.net/manual/en/function.exec.php
shell_exec  Execute command via shell and return the complete output as a string http://www.php.net/manual/en/function.shell-exec.php
So maybe you can explain what exactly you need to achieve so we can advice the way you should proceed.
Cheers
Avatar of hankknight

ASKER

All I need to do is resize an image using ImageMagick.

convert -size 240x180 image.jpg -thumbnail 120x90 thumb.gif

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Ionut A. Tudor
Ionut A. Tudor
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial