Connecting Tech Pros Worldwide Help | Site Map

imagejpeg and imagepng

Joshua Beall
Guest
 
Posts: n/a
#1: Jul 17 '05
According to the PHP manual, imagejpeg and imagepng have a return value of
type "int" - but I do not see where it says what the values mean. Can
anyone enlighten me?

Here are the manual pages:
http://us4.php.net/manual/en/function.imagejpeg.php
http://us4.php.net/manual/en/function.imagepng.php

-Josh


Andy Hassall
Guest
 
Posts: n/a
#2: Jul 17 '05

re: imagejpeg and imagepng


On Tue, 16 Dec 2003 23:06:22 GMT, "Joshua Beall"
<jbeall@donotspam.remove.me.heraldic.us> wrote:
[color=blue]
>According to the PHP manual, imagejpeg and imagepng have a return value of
>type "int" - but I do not see where it says what the values mean. Can
>anyone enlighten me?
>
>Here are the manual pages:
>http://us4.php.net/manual/en/function.imagejpeg.php
>http://us4.php.net/manual/en/function.imagepng.php[/color]

Looking at the source code, it appears to use the RETURN_FALSE macro for
failure and RETURN_TRUE for success. So probably 0 for failure, 1 for success.

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Nick Howes
Guest
 
Posts: n/a
#3: Jul 17 '05

re: imagejpeg and imagepng


"Joshua Beall" <jbeall@donotspam.remove.me.heraldic.us> wrote in message
news:OdMDb.8884$G9.3360@nwrddc01.gnilink.net...[color=blue]
> According to the PHP manual, imagejpeg and imagepng have a return value of
> type "int" - but I do not see where it says what the values mean. Can
> anyone enlighten me?
>
> Here are the manual pages:
> http://us4.php.net/manual/en/function.imagejpeg.php
> http://us4.php.net/manual/en/function.imagepng.php
>[/color]

I'm guessing it'd be an error code so it returns something like a 0 if it
succeeds and another number if it fails.


Closed Thread