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?

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.