Mar 142009
 

Last chance to sign up for tomorrow’s class on PHP and GD Image. Aside from being a fun way to draw and manipulate images in PHP, it’ll also get the rust off of the algebra gears in your brain. That’s right, it uses algebra. Or at least pre-algebra. It’s a good excuse to set up some equations… and then make PHP solve them for you.

The class is Sunday from 1 – 3 pm. Bring a laptop to work on!

  • Liz Arum

    Kelly,
    Thanks for the class today.

    I found one way to use text without specifying a font:
    $caption=”Hello”;
    $fontwidth=imagefontwidth(3);
    $txtwidth=strlen($caption)*$fontwidth;
    $txtx=((200-$txtwidth)/2);
    imagestring($im,3,$txtx,180,$caption,$red);
    -Liz