Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php upload from url

<?php
if(isset($_POST['get_image']))
{
 $url=$_POST['img_url'];
 $data = file_get_contents($url);
 $new = 'images/new_image.jpg';
 file_put_contents($new, $data);
 echo "<img src='images/new_image.jpg'>";
}
?>
Source by talkerscode.com #
 
PREVIOUS NEXT
Tagged: #php #upload #url
ADD COMMENT
Topic
Name
2+6 =