Jump to content

Adding image to folder


Jbert2

Recommended Posts

header ( 'Content-Type: image/jpeg' );
imagejpeg($im, "images2/". $prefix . $filename, 100);
imagejpeg($im);
imagedestroy($im);

 

 

The code does 2 things. displays the new image and saves it to folder 'images2' Problem is all saves overwrite image. How can I save to the folder with no overwrite

 

 

Thanks

 

 

JIM

Link to comment
https://forums.phpfreaks.com/topic/113846-adding-image-to-folder/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.