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!
----------------------------------------------------------
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php