Re: [PHP] PHP Warning: imagettftext()

2008-07-25 Thread Daniel Brown
On Fri, Jul 25, 2008 at 11:02 AM, Lou Baccari <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, I felt a little lonely since no one responded > earlier. No one else that I've been in contact with have complained about > date/time issues with my client and any emails. > > Yes I sent my first em

Re: [PHP] PHP Warning: imagettftext()

2008-07-25 Thread Lou Baccari
Thanks for the reply, I felt a little lonely since no one responded earlier. No one else that I've been in contact with have complained about date/time issues with my client and any emails. Yes I sent my first email on Monday, 7/21/08, and then I sent the last two messages today. The firs

Re: [PHP] PHP Warning: imagettftext()

2008-07-25 Thread Daniel Brown
On Mon, Jul 21, 2008 at 1:14 PM, Lou Baccari <[EMAIL PROTECTED]> wrote: > >> Hello, >> >> I'm trying to move a site over to the V5 of CentOS and I having problems >> with php/gd/freetype. It looks like my older >> systems which is running php-4.3.8-1.1, gd-2.0.15-1, freetype-2.1.4-5 can >> execut

Re: [PHP] PHP Warning: imagettftext()

2008-07-25 Thread Lou Baccari
Sorry for the additional mail but I found the variable GDFONTPATH should be GD_FONTPATH, the example below works for me now. putenv('GD_FONTPATH=' . realpath('.')); Lou Baccari wrote: Hello, After reading Practical PHP Programing I came across a reference that said "On Unix machine

Re: [PHP] PHP Warning: imagettftext()

2008-07-25 Thread Lou Baccari
Hello, After reading Practical PHP Programing I came across a reference that said "On Unix machines, you may find PHP searches in /usr/share/fonts/truetype". Well I find that my php script executes successfully when I placing my arial.ttf file into /usr/share/fonts/truetype directory. So

[PHP] PHP Warning: imagettftext()

2008-07-21 Thread Lou Baccari
Hello, I'm trying to move a site over to the V5 of CentOS and I having problems with php/gd/freetype. It looks like my older systems which is running php-4.3.8-1.1, gd-2.0.15-1, freetype-2.1.4-5 can execute the code successfully. Now when I try to execute the same code on CentOS V5 with

Re: [PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-08 Thread Jochem Maas
Jeffrey Sambells wrote: You've got 83px in you XML file for the fontsize. the 'px' is messing it up change it to just 83 in the XML file or cast the value to (float) which will extract the 83 and remove the px: well spotted Jeffery; James didn't I say to var_dump() the vars you create inside

Re: [PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-07 Thread Jeffrey Sambells
You've got 83px in you XML file for the fontsize. the 'px' is messing it up change it to just 83 in the XML file or cast the value to (float) which will extract the 83 and remove the px: foreach ($xml->textblock as $text) { $fontsize=(float)$text->fontsize;

Re: [PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-07 Thread James
Title: Re: [PHP] PHP Warning:  imagettftext() expects parameter 2 to be double Hi, Thank you for getting back to me, your the first. The array works fine – I have tested it using var_dump(). Attached are the two files – xml.test – this holds the array of the text blocks which is being parsed

Re: [PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-07 Thread Jochem Maas
James wrote: Hi there, I have been using the GD functions from PHP5.0 on Mac OS X. I have a simple script that creates a PNG image with text on the image using fonts using FreeType 2. I am trying to use the imagettftext() function within a foreach loop ­ but I get the following error: PHP War

[PHP] PHP Warning: imagettftext() expects parameter 2 to be double

2005-12-05 Thread James
Hi there, I have been using the GD functions from PHP5.0 on Mac OS X. I have a simple script that creates a PNG image with text on the image using fonts using FreeType 2. I am trying to use the imagettftext() function within a foreach loop ­ but I get the following error: PHP Warning: imagettf