note 71802 added to function.mime-content-type

From: Date: Sat, 16 Dec 2006 20:23:54 +0000
Subject: note 71802 added to function.mime-content-type
Groups: php.notes 
Request: Send a blank email to php-notes+get-120657@lists.php.net to get a copy of this message
small correction to <hillius dot ettinoffe at gmail dot com> for those newbies like me that cut/paste. it eliminates a space between "mime_content_type" and the last single quote, took me a while to spot) <?php if ( ! function_exists ( 'mime_content_type' ) ) { function mime_content_type ( $f ) { return trim ( exec ('file -bi ' . escapeshellarg ( $f ) ) ) ; } } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 201.208.42.204 ---- Manual Page -- http://www.php.net/manual/en/function.mime-content-type.php Edit -- https://master.php.net/note/edit/71802 Del: integrated -- https://master.php.net/note/delete/71802/integrated Del: useless -- https://master.php.net/note/delete/71802/useless Del: bad code -- https://master.php.net/note/delete/71802/bad+code Del: spam -- https://master.php.net/note/delete/71802/spam Del: non-english -- https://master.php.net/note/delete/71802/non-english Del: in docs -- https://master.php.net/note/delete/71802/in+docs Del: other reasons-- https://master.php.net/note/delete/71802 Reject -- https://master.php.net/note/reject/71802 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120657) next »