Hello;

I'm using GD functions for the 1st time. After struggling for several hours with the following:

Call to undefined function: imagesx()

and the same error with other GD functions I started to suspect GD was not installed. I'm running WAMP 5 which installed PHP 5.0.16-nt . I thought I'd read some place that PHP 5x came with GD.

<?php
echo '<pre><br />';
var_dump(gd_info());
?>
Just returns another "Call to undefined function" error.

Does anyone know if there is a GD patch or do I have install another version of PHP?

Thanks! Chris

    Run the following file on your server:

    <?php
    phpinfo()
    ?>

    And look for the GD section. If there is no GD section, then it is likely the extension isn't enabled. Edit your PHP.INI to include (un-comment) the GD extension (probably php_gd2.dll). Normally GD is included with windows distributions, but it is not enabled by default.

      Write a Reply...