Hi , I still can not use the gd !
My php.ini includes this :
; The directory under which PHP opens the script using /~username used only
; if nonempty.
user_dir = "c:\web"
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions"
and ....
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
;extension=php_db.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_dbx.dll
;extension=php_domxml.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_hyperwave.dll
;extension=php_iconv.dll
;extension=php_ifx.dll
and I checked that the php_gd2.dll is in the extentions directory.
and my php program starts like this but fatally errors at line 15:
which is :
$im = imageCreate(50,50);
<?PHP
error_reporting(E_ALL ^ E_NOTICE);
/
simplepng.php
Generates a 50 x 50 pixel png of the color passed in parameter 'color'
/
// convert guaranteed valid hex value to array of integers
$imColor = hex2int(validHexColor($_REQUEST['color']));
// Step 1. Create a new blank image
$im = imageCreate(50,50);
// Step 2. Set background to 'color'
$background = imageColorAllocate($im, $imColor['r'], $imColor['g'], $imColor['b']);
I don't know anything about but from what I have read, this should be working !
Can anyone help a bit more ?
Thanks.