WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : MIME records PHP Array
Categories : PHP, Misc Click here to Update Your Picture
Shashank Prabhakara
Date : Aug 31st 2008
Grade : 1 of 5 (graded 2 times)
Viewed : 4178
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Shashank Prabhakara
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
Like this code?
Show the author your appreciation.
 

It usually gets annoying when you need to enter a mime type and you end up typing hundreds urself... so i keep this array handy

# $ext is an array.
# Need the mime?
# Lets say I want the GIF Mime:
# $mimename=$ext['gif'];
# That will return the GIF Mime Full Name
# Someone had to make this. lol
$ext['ai']='application/postscript';
$ext['aif']='audio/x-aiff';
$ext['aifc']='audio/x-aiff';
$ext['aiff']='audio/x-aiff';
$ext['asc']='text/plain';
$ext['au']='audio/basic';
$ext['avi']='video/x-msvideo';
$ext['bcpio']='application/x-bcpio';
$ext['bin']='application/octet-stream';
$ext['c']='text/plain';
$ext['cc']='text/plain';
$ext['ccad']='application/clariscad';
$ext['cdf']='application/x-netcdf';
$ext['class']='application/octet-stream';
$ext['cpio']='application/x-cpio';
$ext['cpt']='application/mac-compactpro';
$ext['csh']='application/x-csh';
$ext['css']='text/css';
$ext['dcr']='application/x-director';
$ext['dir']='application/x-director';
$ext['dms']='application/octet-stream';
$ext['doc']='application/msword';
$ext['drw']='application/drafting';
$ext['dvi']='application/x-dvi';
$ext['dwg']='application/acad';
$ext['dxf']='application/dxf';
$ext['dxr']='application/x-director';
$ext['eps']='application/postscript';
$ext['etx']='text/x-setext';
$ext['exe']='application/octet-stream';
$ext['ez']='application/andrew-inset';
$ext['f']='text/plain';
$ext['f90']='text/plain';
$ext['fli']='video/x-fli';
$ext['gif']='image/gif';
$ext['gtar']='application/x-gtar';
$ext['gz']='application/x-gzip';
$ext['h']='text/plain';
$ext['hdf']='application/x-hdf';
$ext['hh']='text/plain';
$ext['hqx']='application/mac-binhex40';
$ext['htm']='text/html';
$ext['html']='text/html';
$ext['ice']='x-conference/x-cooltalk';
$ext['ief']='image/ief';
$ext['iges']='model/iges';
$ext['igs']='model/iges';
$ext['ips']='application/x-ipscript';
$ext['ipx']='application/x-ipix';
$ext['jpe']='image/jpeg';
$ext['jpeg']='image/jpeg';
$ext['jpg']='image/jpeg';
$ext['js']='application/x-javascript';
$ext['kar']='audio/midi';
$ext['latex']='application/x-latex';
$ext['lha']='application/octet-stream';
$ext['lsp']='application/x-lisp';
$ext['lzh']='application/octet-stream';
$ext['m']='text/plain';
$ext['man']='application/x-troff-man';
$ext['me']='application/x-troff-me';
$ext['mesh']='model/mesh';
$ext['mid']='audio/midi';
$ext['midi']='audio/midi';
$ext['mif']='application/vnd.mif';
$ext['mime']='www/mime';
$ext['mov']='video/quicktime';
$ext['movie']='video/x-sgi-movie';
$ext['mp2']='audio/mpeg';
$ext['mp3']='audio/mpeg';
$ext['mpe']='video/mpeg';
$ext['mpeg']='video/mpeg';
$ext['mpg']='video/mpeg';
$ext['mpga']='audio/mpeg';
$ext['ms']='application/x-troff-ms';
$ext['msh']='model/mesh';
$ext['nc']='application/x-netcdf';
$ext['oda']='application/oda';
$ext['pbm']='image/x-portable-bitmap';
$ext['pdb']='chemical/x-pdb';
$ext['pdf']='application/pdf';
$ext['pgm']='image/x-portable-graymap';
$ext['pgn']='application/x-chess-pgn';
$ext['png']='image/png';
$ext['pnm']='image/x-portable-anymap';
$ext['pot']='application/mspowerpoint';
$ext['ppm']='image/x-portable-pixmap';
$ext['pps']='application/mspowerpoint';
$ext['ppt']='application/mspowerpoint';
$ext['ppz']='application/mspowerpoint';
$ext['pre']='application/x-freelance';
$ext['prt']='application/pro_eng';
$ext['ps']='application/postscript';
$ext['qt']='video/quicktime';
$ext['ra']='audio/x-realaudio';
$ext['ram']='audio/x-pn-realaudio';
$ext['ras']='image/cmu-raster';
$ext['rgb']='image/x-rgb';
$ext['rm']='audio/x-pn-realaudio';
$ext['roff']='application/x-troff';
$ext['rpm']='audio/x-pn-realaudio-plugin';
$ext['rtf']='text/rtf';
$ext['rtx']='text/richtext';
$ext['scm']='application/x-lotusscreencam';
$ext['set']='application/set';
$ext['sgm']='text/sgml';
$ext['sgml']='text/sgml';
$ext['sh']='application/x-sh';
$ext['shar']='application/x-shar';
$ext['silo']='model/mesh';
$ext['sit']='application/x-stuffit';
$ext['skd']='application/x-koan';
$ext['skm']='application/x-koan';
$ext['skp']='application/x-koan';
$ext['skt']='application/x-koan';
$ext['smi']='application/smil';
$ext['smil']='application/smil';
$ext['snd']='audio/basic';
$ext['sol']='application/solids';
$ext['spl']='application/x-futuresplash';
$ext['src']='application/x-wais-source';
$ext['step']='application/STEP';
$ext['stl']='application/SLA';
$ext['stp']='application/STEP';
$ext['sv4cpio']='application/x-sv4cpio';
$ext['sv4crc']='application/x-sv4crc';
$ext['swf']='application/x-shockwave-flash';
$ext['t']='application/x-troff';
$ext['tar']='application/x-tar';
$ext['tcl']='application/x-tcl';
$ext['tex']='application/x-tex';
$ext['texi']='application/x-texinfo';
$ext['texinfo']='application/x-texinfo';
$ext['tif']='image/tiff';
$ext['tiff']='image/tiff';
$ext['tr']='application/x-troff';
$ext['tsi']='audio/TSP-audio';
$ext['tsp']='application/dsptype';
$ext['tsv']='text/tab-separated-values';
$ext['txt']='text/plain';
$ext['unv']='application/i-deas';
$ext['ustar']='application/x-ustar';
$ext['vcd']='application/x-cdlink';
$ext['vda']='application/vda';
$ext['viv']='video/vnd.vivo';
$ext['vivo']='video/vnd.vivo';
$ext['vrml']='model/vrml';
$ext['wav']='audio/x-wav';
$ext['wrl']='model/vrml';
$ext['xbm']='image/x-xbitmap';
$ext['xlc']='application/vnd.ms-excel';
$ext['xll']='application/vnd.ms-excel';
$ext['xlm']='application/vnd.ms-excel';
$ext['xls']='application/vnd.ms-excel';
$ext['xlw']='application/vnd.ms-excel';
$ext['xml']='text/xml';
$ext['xpm']='image/x-xpixmap';
$ext['xwd']='image/x-xwindowdump';
$ext['xyz']='chemical/x-pdb';
$ext['zip']='application/zip';



The meaning of your name
Categories : PHP, Arrays, Misc
Query2Report : Generating Html, Pdf and Csv Reports from SQL Query
Categories : PHP, PHP, HTML, PDF, Excel
PHP Composer - This class is meant to render images of the musical score of ring tones notes used in cellular phones, defined in the RTTL format.
Categories : PHP, PHP Classes, Misc
This is a simple PHP3 script to send an instant msg to the webmaster (only for Windows NT).
Categories : PHP, Misc, Miscellaneous
phpRecommend v1.2 - UPDATED - recommend this page to a friend script - VERY easy install - now with data logging to text file
Categories : Complete Programs, PHP, Link to Article, URLs, Misc
ANTI leech script, use this if you want that people can't see the original URL. The files can be on your own server or on another server.
Categories : HTML, Misc, PHP
This script allows people to add their favorite quotes to your website. This could easily be modified to be a guestbook script or comment page script.
Categories : PHP, Complete Programs, HTML and PHP, Misc
PHP Nested Menu Example - Shows how to make a single level nested menu
Categories : PHP, Navigation
Authorize.net AIM Interface Class v1.0.0
Categories : PHP, PHP Classes, Ecommerce, Payment Gateways
Browser Detecor Class
Categories : PHP Classes, PHP, HTML
ovrimos_close -- Closes the connection to ovrimos
Categories : PHP, PHP Functions, OvrimosSQL
Timer - a class that uses microtime() to provide easy calculation of elapsed times
Categories : Algorithms, PHP, PHP Classes
filesplit : Split big text files in multiple small ones
Categories : PHP, Log Files, Filesystem, PHP Classes
Simple conversion functions to change MySQL dates to arrays, arrays to MySQL dates.
Categories : PHP, Arrays, Date Time, Databases, MySQL
Amazon book cover handling
Categories : HTML and PHP, PHP, MySQL, Ecommerce