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 Quote 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); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.