Re: PHP Version 5.6.10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Good Guy in php.windows (Fri, 10 Jul 2015 03:23:18 +0100):
>On 09/07/2015 09:11, Jan Ehrhardt wrote:
>> Anatol is absolutely right that you'd better upgrade to Apache 2.4, 
>> but if you can't there is a php5apache2_2.dll in my builds: 
>> http://www.apachelounge.com/viewtopic.php?t=6359 Jan 
>
>OK downloaded the apachelounge version and everything seems to be 
>working for now.  One thing though I would like to fix and that is this:
>
>Ugly-Error <http://s11.postimg.org/bq68my08z/2015_07_10_0317.png>

http://php.net/imagettftext just works with a fontfile in the directory
of the script.

Example on Windows with my PHP 5.3 php_gd2.dll:
http://iss.albatros-amsterdam.nl/login.php?getpass=2&lidnr=CDQ0F7Y

Code

$font = "tahomabd.ttf";
$font_size = 33;
$char = "";
$char = $this -> Characters[0];
$random_x = mt_rand(10 , 20);
$random_y = mt_rand(40 , 50);
$random_angle = mt_rand(-20 , 20);
imagettftext($image, $font_size, $random_angle, $random_x, $random_y, \
	$char_color, $font, $char);

Jan

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux