Is it possible using copy() php function for different domain?

Is it possible using copy() php function for different domain?  #angularjs #reactjs

  • Stack Overflow works best with JavaScript enabled
  • I already read this and the copy() function work if file directory in 1 domain,
  • sign up log in tour help
  • If dest is a URL, the copy operation may fail if the wrapper does not support overwriting of existing files.
  • you can use curl for different domain, if you have permissions – Vikas Umrao 2 hours ago

You cant copy your stuff to someone else’s server without them providing you an interface for it or you finding a loophole to crack their server.

@ng_real_ninja: Is it possible using copy() php function for different domain? #angularjs #reactjs

Does anyone knows if is it possible using copy() function in php but in different domain?

but what if a file exist in another domain? example

or anyone have another method? thanks

No (if you don’t own/control the destination url)

You cant copy your stuff to someone else’s server without them providing you an interface for it or you finding a loophole to crack their server.

Both source and dest may now be URLs if the “fopen wrappers” have been enabled. See fopen() for more details.

And you also have to ensure this

The destination path. If dest is a URL, the copy operation may fail if the wrapper does not support overwriting of existing files.

Is it possible using copy() php function for different domain?