image from website php

image from website php

  • Category: from
  • Seed : 117
  • Leech : 50

Click Download button to get file!

$url = 'http://example.com/image.php'; $img = '/my/folder/flower.gif'; ... function save_image($inPath,$outPath) { //Download images from ... Saving an Image from URL in PHP. Declaring two variables named as $url and $img, representing the source URL and destination file respectively. Use file_put_contents() function to write a string to a file that takes two arguments. Use file_get_contents() function to read a file into a string. You can force images or other kind of files to download directly to the user's hard drive using the PHP readfile() function.

Reply

Text