Daily Archives: February 22, 2015

<!DOCTYPE HTML> <html> <head> <style> body { margin: 0px; padding: 0px; } </style> </head> <body> <div align=”center”> <canvas id=”myCanvas” width=”578″ height=”400″></canvas> </div> <script> var canvas = document.getElementById(‘myCanvas’); var context = canvas.getContext(‘2d’); var imageObj = new Image(); imageObj.onload = function() { context.drawImage(imageObj, 69, 50); }; imageObj.src = ‘url of the image’; […]

draw image on canvas in html

  Application MIME Type File Extension Cascading Style Sheet text/css css H.323 internet telephony file text/h323 323 HTML file text/html htm HTML file text/html html Exchange streaming media file text/html stm NetMeeting user location service file text/iuls uls BASIC source code file text/plain bas C/C++ source code file text/plain c […]

List of Text File’s MIME Types by Content Type

  Application MIME Type File Extension audio file audio/basic au sound file audio/basic snd midi file audio/mid mid media processing server studio audio/mid rmi MP3 file audio/mpeg mp3 audio interchange file format audio/x-aiff aif compressed audio interchange file audio/x-aiff aifc audio interchange file format audio/x-aiff aiff media playlist file audio/x-mpegurl […]

List of Sound File MIME Types by Content Type

Application MIME Type File Extension Bitmap image/bmp bmp compiled source code image/cis-cod cod graphic interchange format image/gif gif image file image/ief ief JPEG image image/jpeg jpe JPEG image image/jpeg jpeg JPEG image image/jpeg jpg JPEG file interchange format image/pipeg jfif scalable vector graphic image/svg+xml svg TIF image image/tiff tif TIF […]

List of Image MIME Types by Content Type

Display PHP errors ini_set function ini_set(‘display_errors’,1); ini_set(‘display_startup_errors’,1); error_reporting(-1); Allowed memory size of 33554432 bytes exhausted (tried to allocate 43148176 bytes) in php ini_set(‘memory_limit’, ‘-1’);

some very useful ini_set code in php