Subdomain Posts
PHP | 31 days ago
PHP | 54 days ago
PHP | 54 days ago
Bash | 172 days ago
None | 468 days ago
None | 505 days ago
None | 528 days ago
None | 530 days ago
None | 550 days ago
Recent Posts
None | 12 sec ago
None | 15 sec ago
None | 35 sec ago
None | 52 sec ago
None | 59 sec ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
C++ | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
By Lazza on the 26th of Jan 2010 06:59:16 PM
Download |
Raw |
Embed |
Report
function zula_get_file_mime( $file ) {
$libLog = Registry::get( 'log' );
//$libLog->message( 'Ho ricevuto questo -> '.$file, Log::L_WARNING );
//$libLog->message( 'Estensione -> '.$exten, Log::L_WARNING );
switch($exten) {
case 'gif': $mime = 'image/gif';
break;
case 'jpg':
case 'jpeg':$mime = 'image/jpeg';
break;
case 'png': $mime = 'image/png';
break;
case 'flv': $mime = 'video/x-flv';
break;
case 'mp4': $mime = 'video/mp4';
break;
case 'mp3': $mime = 'audio/mpeg';
break;
default: $mime = false;
}
return $mime;
}
Submit a correction or amendment below.
Make A New Post