Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
July 20, 2006, 10:21 pm
rate this thread
echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL
Use: PHP 4.3.9 with bundled GD 2.0.1
Why would one function exist while the other not exist? Is this perhaps
due to XBM (X-Bitmap) images being "read-only", or is it something
Re: imagecreatefromxbm exists but imagexbm doesn't
"imagexbm (PHP 5)"
You're on PHP4, XBM generation appears to be specific to the bundled GD
library (core GD doesn't appear to support it, at least there's no imagexbm
function in the main API; PHP has a slightly modified version compared with the
official GD library), and so it seems it was added in a later version to the
one you have.
Andy Hassall :: email@example.com :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool