Jump to content

Updating Files from an External Resource

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Bioshox

Bioshox

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Like Wordpress does via the update

Download files from an external resource
Upload and Replace current Files and Folders on the server
Done

Use as a software updater

How would this be done?!

#2
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Most likely, it's done with curl, or get_file_contents or similar, then stored on disk and after that unpacked/untared/unzipped with either own php code using the built in libraries, or using system calls to perform it.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall