seb hughes Posted May 18, 2007 Share Posted May 18, 2007 I was wondering, how do I upload an image already on the web, say I have a form, where the user paste the image url and clicks upload and it will then upload onto my server, i know how to upload a file from a desktop, btu not if its already on the web. Thanks, Sebastian Hughes Quote Link to comment https://forums.phpfreaks.com/topic/52020-uploading-image-already-on-web/ Share on other sites More sharing options...
textbox Posted May 18, 2007 Share Posted May 18, 2007 I think curl can do this? http://uk2.php.net/curl Quote Link to comment https://forums.phpfreaks.com/topic/52020-uploading-image-already-on-web/#findComment-256386 Share on other sites More sharing options...
Wildbug Posted May 18, 2007 Share Posted May 18, 2007 You don't need curl for this. The file functions have HTTP wrappers. Read the PHP manual for functions like fopen() or copy(). Quote Link to comment https://forums.phpfreaks.com/topic/52020-uploading-image-already-on-web/#findComment-256473 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.