I was wondering if it is possible on a form to click a submit button and save an image from the location entered in an input box (e.g http://www.test.com/image1.jpg) to a known server.?? All this at a click of a button rather than having to save it locally first.
Thanks
Dave
Saving an image onto my server form another location.
Moderator: General Moderators
have you tried:?
http://us3.php.net/manual/en/function.f ... ntents.php
Code: Select all
$file = file_get_contents('http://www.test.com/test.jpg');http://us3.php.net/manual/en/function.f ... ntents.php
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
might need fsockopen() or curl.. what version of php are you using?