Hi. I'm new to the list, but not new to PHP.

Anyway, I have a small PHP script that was meant to help learn about doing stuff with the GD library. Basically, it opens an image of a button and centers text on top of it, then displays it. To center the text, it uses ImageTTFBBox(). However, it appears that whenever I use this call, the PHP script hangs, and after about 10 seconds my web browser (Safari) says that it couldn't read any data from the server (I assume this means the server closed the connection without sending any data to the browser). If I comment out the call, the script proceeds just fine.

Actually, after looking at it again, it does the exact same behaviour on ImageTTFText(). I can't figure out what the problem is, unless it somehow hangs on reading in the TrueType font.

Can anybody figure out what my problem could be? Alternately, if nobody can do that, is there any way to figure out the width/height of font rendered using the built in fonts (i.e. 1-5 with imagestring())?

For reference, my script can be found here: <http://kballard.res.wpi.net/button.phps>

--
Kevin Ballard
[EMAIL PROTECTED]
http://www.tildesoft.com

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



Reply via email to