I produce an imagepng imagepng($img); that readily displays on the screen. When I try to save is as a file imagepng($img, 'save.png'); it does not save the image. When using the same program under ordinary PHP in Windows is saves the file to the folder where the program is saved under htdocs, so it must have something to do with the ZEND installation on MAC. Permissions for the ZEND folder are set to read&write. Will really appreciate cues to come around this hurdle.