<?php $file = 'https://github.com/directus/directus/archive/v8.8.0.zip'; $newfile = 'v8.8.0.zip'; if (!copy($file, $newfile)) { echo "failed to copy $file...\n"; } ?>