0

Wordpress.com offers a service that allows to generate a website snapshot on the fly using url formed like this example:

https://s.wordpress.com/mshots/v1/http%3A%2F%2Fnytimes.com?w=612

I tried with copy

copy('https://s.wordpress.com/mshots/v1/http%3A%2F%2Fnytimes.com?w=612',/local/path/file.jpg);

But it doesn't work. Also, if I put a static image as copy first parameter the command works.

What am I missing?

Blackbam
  • 14,898
  • 22
  • 85
  • 134
DaFois
  • 2,166
  • 8
  • 22
  • 38

1 Answers1

0

You want to save an image from an URL to your server?

save an image from a URL then save it into a directory php

Community
  • 1
  • 1
Matt Backslash
  • 704
  • 1
  • 7
  • 19