Re: PHP and GD

From: Date: Wed, 03 Oct 2001 04:23:22 +0000
Subject: Re: PHP and GD
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69704@lists.php.net to get a copy of this message
What value is $im? Is it a valid image? Check error codes. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: J. Anderson Scarbrough <jebscarbrough@hotmail.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Monday, September 24, 2001 9:59 AM Subject: PHP and GD > I am trying to create PNG images on the fly > using the following code. > > if(file_exists($key)) { > $diff = time() - filemtime($key); > if($diff >= 600) { > unlink($key); > } > } > $im = ImageCreateFromPNG($value); > $isCreated = imagePNG($im, $key, '80'); file://error occurs here > > I recieve the following error on the line indicated above. > > imagepng: unable to open '/images/image1.png' for writing > > When I run phpinfo it shows PHP as begin copiled with GD support with PNG > enable on GD (see below) > > GD Support enabled > GD Version 1.6.2 or higher > PNG Support enabled > WBMP Support enabled > > The only other issue i could think of was permissions, but i have changed > permissions to "rwx" all the way across for the directory and all files > inside the directory. > > Any one have any ideas??? > > Thanks. > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at > http://explorer.msn.com/intl.asp >

« previous php.general (#69704) next »