I am creating an image via a php script using imagepng. This works fine and displays well on the website. even saving-as gives me a valid .png file
header( \
Make sure that PHP has permissions to write files to that folder. chmod probably only affects FTP users or particular users.
And try one at a time. i.e.:
header( "Content-type: image/png" );
imagepng($my_img);
then
$save = "../sigs/". strtolower($name) .".png";
imagepng($my_img, $save);
So that you can isolate errors.
Attempt saving in the same folder as the script first, see if there's any problem.
$save = strtolower($name) .".png";
imagepng($my_img, $save);