Bug #17192 Updated: DLL not valid
| From: | edink@php.net | Date: | Wed, 15 May 2002 00:26:11 +0000 |
| Subject: | Bug #17192 Updated: DLL not valid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-7700@lists.php.net to get a copy of this message | ||
ID: 17192
Updated by: edink@php.net
Reported By: hubweb@hotmail.com
-Status: Feedback
+Status: Closed
Bug Type: GD related
Operating System: Windows 2002
PHP Version: 4.2.1
Assigned To: edink
New Comment:
You need to set the path to you fonts dir. Here is a fully working
example:
<?php
putenv('GDFONTPATH=c:\winnt\fonts');
header ("Content-type: image/jpeg");
$im = imagecreate (400, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 20, 0, 10, 20, $white, 'arial', "Testing...Omega:
Ω");
imagejpeg ($im);
imagedestroy ($im);
?>
Previous Comments:
------------------------------------------------------------------------
[2002-05-14 11:05:09] hubweb@hotmail.com
I tried http://ftp.proventum.net/pub/php/win32/php_gd2.zip
It works fine, but I have problems with ImageTtfText(). It says me : "
Warning: Could not find/open font in ... on line ... " !
------------------------------------------------------------------------
[2002-05-14 09:18:04] edink@php.net
Are you sure you have copied php4ts.dll and dlls\*.dll to your windows
system folder.
------------------------------------------------------------------------
[2002-05-14 04:47:55] phpbugs@ski-info-online.com
Hi,
Apologies regarding the missing dll's. That was my blindness (looking
in my 4.2.0 folder). I've now removed all previous installations (even
though the php.ini and httpd.conf were pointing to the correct
locations).
However, I cannot get the curl, imap, or ldap modules to load from my
extensions folder (d:\php-4.2.1-Win32\extensions). I keep getting the
message I posted in my previous post.
Thanks
------------------------------------------------------------------------
[2002-05-14 03:08:52] edink@php.net
Could you please try php_gd2.dll that I just uploaded to
http://ftp.proventum.net/pub/php/win32/php_gd2.zip
------------------------------------------------------------------------
[2002-05-14 02:10:27] edink@php.net
I can confirm that php_gd2.dll seem not to be functional. But problems
reported by phpbugs@ski-info-online.com are probably due to
misconfiguration on his part. Plus php_imap.dll, php_ldap.dll are both
included in the zip file.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/17192
--
Edit this bug report at http://bugs.php.net/?id=17192&edit=1