niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
imagecreatefromxbm exists but imagexbm doesn't
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
comp.lang.php
*nix forums Guru Wannabe


Joined: 22 Feb 2005
Posts: 156

PostPosted: Thu Jul 20, 2006 10:21 pm    Post subject: imagecreatefromxbm exists but imagexbm doesn't Reply with quote

[PHP]
<?php

echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL

?>
[/PHP]

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
else?

Thanx
Phil
Back to top
Andy Hassall
*nix forums Guru


Joined: 20 Feb 2005
Posts: 874

PostPosted: Thu Jul 20, 2006 10:59 pm    Post subject: Re: imagecreatefromxbm exists but imagexbm doesn't Reply with quote

On 20 Jul 2006 15:21:23 -0700, "comp.lang.php" <phillip.s.powell@gmail.com>
wrote:

Quote:
[PHP]
?php

echo function_exists('imagecreatefromxbm'); // PRODUCES 1
echo function_exists('imagexbm'); // PRODUCES.. WELL.. NULL

?
[/PHP]

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
else?

http://uk2.php.net/imagexbm
says:

"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 :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 6:56 pm | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Checking a url exists Julian Moorhouse PHP 5 Wed Jul 12, 2006 3:46 pm
No new posts Determine if a column exists... dogonline4@hotmail.com Server 4 Thu Jul 06, 2006 9:11 pm
No new posts DROP TABLE, VIEW, ... only IF EXISTS Gregor Kovač IBM DB2 4 Thu Jul 06, 2006 1:49 pm
No new posts Book exists?: "Definitive Guide to Object-Oriented Progra... David Combs Perl 5 Mon Jul 03, 2006 7:39 pm
No new posts limit over attribute size if index over it exists pajai PostgreSQL 2 Mon Jun 26, 2006 9:52 am

Buy Anything On eBay | Babb Fest | Loans | Myspace Backgrounds | Refinance
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0968s ][ Queries: 16 (0.0285s) ][ GZIP on - Debug on ]