Re: undefined GD function

From: Date: Mon, 04 Jun 2007 13:16:27 +0000
Subject: Re: undefined GD function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-256047@lists.php.net to get a copy of this message
C.R.Vegelin escreveu:
Hi All, I am testing some GD functions, but I'm getting "undefined function" errors. I checked php.ini and changed ;extension=php_gd2.dll to extension=php_gd2.dll The php.ini file contains: extension_dir = "c:/php/ext" and this directory does contain php_gd2.dll (version 5.2.0.0) I am using Windows XP, PHP 5.2.0 and IIS 5.1. The function getimagesize($filename); is okay, but imagecreatetruecolor($width, $height); says "undefined function". I would appreciate some hints. TIA, Cor ----
The function getimagesize() does not require the GD image library. Check your system with: ---------------------- <style type="text/css"> <!-- .abcv {
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-style: italic;
    color: #0000FF;
    background-color: #CCCCCC;
    border: 1px solid #33FF00;
    padding-top: 2px;
    padding-right: 10px;
    padding-bottom: 2px;
    padding-left: 10px;
} --> </style> <?php /* --------------------------------------------------
     (E) EXECUTE to see the loaded extensions
-------------------------------------------------- */ $exts = get_loaded_extensions (); foreach ( $exts as $xt ) { $funcs10 = get_extension_funcs ($xt); echo '<br /><br /><span class="abcv">' . $xt . '</span><br /><br />'; echo "<pre>"; print_r ( $funcs10 ); echo "</pre>"; } ?> IF the GD libray was listed, use: -------------------------------- <?php /* array get_extension_funcs ( string module_name ) */ $gdfuncs = get_extension_funcs ("gd"); echo "<pre>"; print_r ( $gdfuncs ); echo "</pre>"; ?> To see all the active GD funtions. -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management ---------------------------------------------------------- Você deve, sempre, consultar uma segunda opinião! ---------------------------------------------------------- Deixe todos saberem se esta informação foi-lhe útil. ---------------------------------------------------------- You must hear, always, one second opinion! In all cases. ---------------------------------------------------------- Let the people know if this info was useful for you! ----------------------------------------------------------

« previous php.general (#256047) next »