Applellial Posted July 7, 2011 Share Posted July 7, 2011 Hi, I want to generate a JPG image and may b with some submit button want to upload the generated Image into a server. I do know how to generate an image in PHP, but how to upload the same directly to server -Regards Link to comment https://forums.phpfreaks.com/topic/241279-image-generationuploading-of-this-image/ Share on other sites More sharing options...
Cagecrawler Posted July 7, 2011 Share Posted July 7, 2011 Instead of having your script set the header type and then echo the image content, just save that content to a file. file_put_contents('/path/to/image.jpg',$imgContent); Link to comment https://forums.phpfreaks.com/topic/241279-image-generationuploading-of-this-image/#findComment-1239374 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.