[nycphp-talk] Re: Graphics with php
elvire dardier
nygini at yahoo.com
Wed Oct 16 16:34:43 EDT 2002
Hi Hans,
Yes, it is the only error that we get in our little
script im.php:
"Fatal error: Call to undefined function: imagepng()
in im.php on line 9
We tried using getimagesize() and some other
gd_functions and they were found by php.
I do not exaclty understand what you mean by enabling
PNG? We specified PNG directory with the option
"--with" when configuring php.
What constants should be defined?
Thank you again,
Genevieve.
>
> I haven't used GD in a while (last compile I did
> with it was when the
> libs were still seperate) but I think modern PHP
> versions come with a
> bundled version, which is certainly recommended.
>
> > ..When
> > running a small test script, it tells me that it
> does
> > not find imagepng() for instance ( I am on
> > sun/solaris).
>
> Hmm... Are you sure the script is running with the
> PHP binary/module
> you think it is? Is that the only error it gives?
> If it couldn't find
> the GD libs properly, you should get a different
> error (if it would
> even compile at all). But this error seems like PHP
> doesn't even know
> this module is available. Is PNG specifically
> enabled? Do any of the
> image functions work
> (getimagesize(),exif_imagetype())? Are the
> constants defined? Did you compile it as a dynamic
> module? Did you
> load it with dl() if so?
>
>
>
>
> =====
> Hans Zaunere
> New York PHP
> http://nyphp.org
> hans at nyphp.org
>
> __________________________________________________
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
>
>
> --- Unsubscribe at http://nyphp.org/list ---
>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
More information about the talk
mailing list