Hi,
When I do
print_r(get_loaded_extensions());
I get: Array ( [0] => bcmath [1] => calendar [2] => com_dotnet [3] => ctype [4] => ftp [5] => iconv [6] => odbc [7] => pcre [8] => session [9] => SPL [10] => SQLite [11] => standard [12] => tokenizer [13] => zlib [14] => libxml [15] => dom [16] => SimpleXML [17] => wddx [18] => xml [19] => mysql [20] => gd )
So gd is an loaded extension. Yes. But when I call
$origimg = imagecreatefromstring($imagestring);
I get
Fatal error: Call to undefined function imagecreatefromstring() in c:\htdocs\blabalbalblalblablla.php on line 53
I am using php 5.0.4 for windows and as I understand it gd is loaded by default. If I check my php.ini then it show the php_gd2.dll extension as loaded.
;extension=php_gd2.dll
Also the
extension_dir = "G:/appwin/internet/php/ext/"
is complete and acurate. So basically gd should be loaded however it's not as the error indicates. Anybody got any idea how to get gd working under php 5.0.4 for windows? Why does gd not work out of the box when you install php 5.0.4.
I am using apache2 could it be due to that? Could it be due to how php is setup with apache2?
Any help would be appriciated. Thank you.