[EMAIL PROTECTED] wrote:
Tom, when I switch code to:

 putenv('GDFONTPATH=/Macintosh HD/Fonts/');
 $font = Macintosh HD/Fonts./'arial.ttf';
...

Parse error: parse error, unexpected T_STRING in
/Users/stephent/Sites/php_mysql_web_dev/chapter_19/make_button.php on line
16

Whattaya make of that?

Because "Macintosh HD/Fonts" should be part of string, i.e.:


$font = '/Macintosh HD/Fonts/arial.ttf';

This will eliminate "parse error", but does it solve Your actual problem, i don't know. Maybe You should set $font like Chris suggested (..."Macintosh HD" is actually / to the UNIX layer of the OS...):

$font = '/Fonts/arial.ttf';


Hope that helps.


--
Pavel a.k.a. Papi

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



Reply via email to