Skip to content

Instantly share code, notes, and snippets.

View burakerdem's full-sized avatar
🏠
Working from home

Burak Erdem burakerdem

🏠
Working from home
View GitHub Profile
@burakerdem
burakerdem / progress.php
Created March 23, 2019 16:55
PHP/cURL download progress monitoring (PHP 7.2).
<?php
file_put_contents('progress.txt', '');
if (is_file('progress.txt')) {
unlink('progress.txt');
}
if (is_file('testfile.iso')) {
unlink('testfile.iso');
}