Check if imagemagick is installed via php

Hi,
How can i check if image magick is installed from my php program?

Thanks,
Mag
LVL 2
mag1c1anAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

basiclifeCommented:
Look at the output form phpinfo()
0
mag1c1anAuthor Commented:
Hi,
I did that, what am I looking for? (eg: imagick)
Thanks,
Mag
0
basiclifeCommented:
hang on and let me have a look
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

basiclifeCommented:
Ok, Imagemagick isn't a PHP module so it won't show on phpinfo() My fault.  Are you the server admin? You need to call imagemagick using some sort of execution command ie shell_exec() etc... and you'll need to know the path. Unfortunately, unless you KNOW the path you can't check it using PHP. Also, if safe mode is on, it will only work if it's in a place that PHP is allowed to execute from.

Finally, if you are the server admin you should telnet/ssh to the server and do:

find / -name imagemagick which will tell you where it is.

I can't think of a way to do this unless you have some sort of shell account at least.

Sorry about the mistake in the last post. Should've checked my facts.
0
caterham_wwwCommented:
Hi,

go to http://www.jmbsoft.com/software/tools/ . At the bottom of the page you can download the ImageMagick Test Suite for free. It's not a php-script but a perl one, which you should run on your server.
The script tells you, if ImageMagick is installed working.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
basiclifeCommented:
Nice workaround
0
mag1c1anAuthor Commented:
Hi guys,
Basiclife, I know you tried your best to help me even though you should have checked first ;-p so I have increased the points and you get the original points since you took the time to try to help me.

caterham_www, the tool works great, thanks! Extra points to you for giving me the solution.

Thanks,
Mag

0
basiclifeCommented:
Thanks for that, but it wasn't required. I'd not have felt badly about it if you'd given the lot to caterham_www since he actually solved the problem but I appreciate it.
0
mag1c1anAuthor Commented:
Hi,
No, thats ok, I thought this was an easy question (something like looking in the phpinfo() function) but in the end that was not the case and I  think if someone takes the time to help you.....

Thanks,
Mag
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.