opencombatclan Posted August 19, 2008 Share Posted August 19, 2008 Hi all, i create a image with GD. The GD image is created using vars out of a coockie. So when i see the image i would like to save it SERVERSIDE. How to do this? how to save the (png) image serverside. mind that the url is XXX/XXX.php and i need it to store the image as XXX.png please help me out. Link to comment https://forums.phpfreaks.com/topic/120316-simple-question-save-gd-image-on-server/ Share on other sites More sharing options...
Fadion Posted August 19, 2008 Share Posted August 19, 2008 imagepng() has an argument which specifies where the generated image is going to be saved. Example: <?php $im = imagecreatefrompng('../myimage.png'); imagepng($im, '../myimage_copy.png'); ?> Link to comment https://forums.phpfreaks.com/topic/120316-simple-question-save-gd-image-on-server/#findComment-619929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.