Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block bystefu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bystefu / extension.php
Created Jan 31, 2019
Detect file extension, function PHP
View extension.php
function extensie($name){
$name = explode(".",strrev($name));
return strrev($name[0]);
bystefu / curl_progress.php
Created Jan 29, 2019 — forked from bdunogier/curl_progress.php
PHP/cURL download progress monitoring
View curl_progress.php
file_put_contents( 'progress.txt', '' );
$targetFile = fopen( 'testfile.iso', 'w' );
$ch = curl_init( '' );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt( $ch, CURLOPT_NOPROGRESS, false );
curl_setopt( $ch, CURLOPT_PROGRESSFUNCTION, 'progressCallback' );
curl_setopt( $ch, CURLOPT_FILE, $targetFile );
You can’t perform that action at this time.