Jump to content

Load Imagick


fesan

Recommended Posts

Hi....

 

I'm trying to dive into imagick.

But I cant seem to load it.

 

My web host has Imagic 6.3.X installed but from phpinfo() it does not show, and my scripts bring fatal error.

Fatal error: Class 'Imagick' not found in...

I have made my own php.ini and it lodes fine with .htaccess.

 

<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/2/f/fesan/
</IfModule>

 

In php.ini i have added:

;My Extesions:
[imagick]
extension=imagick.so

 

Does anyone know how to load imagick correctly to php?

I'm on a linux server.

Link to comment
https://forums.phpfreaks.com/topic/228176-load-imagick/
Share on other sites

Can i use all the functions from imagick with this exec()?

 

Just to get me startet.

How would you solve this code with exec()?

<?php

try
{
        /*** a file that does not exist ***/
        $image = '/file/does/not/exists.jpg';

        /*** a new imagick object ***/
        $im = new Imagick($image);

        echo 'Imagick';
}
catch(Exception $e)
{
        echo $e->getMessage();
}

?>

Link to comment
https://forums.phpfreaks.com/topic/228176-load-imagick/#findComment-1176815
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.