Tuesday 15 July 2014

Secure Login In PHP AND MYSQLi

http://www.wikihow.com/Create-a-Secure-Login-Script-in-PHP-and-MySQL แปะลิ้งไว้ก่อน Secure Login

http://www.sitepoint.com/support-retina-displays/
http://imulus.github.io/retinajs/

http://mashable.com/2014/08/28/static-website-generators/?utm_cid=mash-com-fb-tech-link

http://www.limecanvas.com/speed-up-your-website-using-caching-and-htaccess/


http://butlerccwebdev.net/support/testingserver/vhosts-setup-win.html How to setup host server

MIME TYPE FILE


MIME Type (Multipurpose Internet Mail Extension) เป็นการกําหนดชนิดข้อมูลมาตรฐานสําหรับอินเทอร์เนตในแบบ Content-type เป็นตัวบ่งชี้ว่าชนิดข้อมูลนั้นๆคืออะไร เว็บเบราเซอร์จะนำข้อมูลนั้นมาโดยวิธีใด และจะจัดการกับข้อมูลเหล่านั้นต่อไปอย่างไร อาจแสดงเป็นชนิดข้อมูลหลัก type เปล่าๆ หรือแสดงชนิดข้อมูลรองด้วย type/subtype เช่น Text, Text/html

ตารางชนิดไฟล์


Microsoft Office type


Ext MIME Type
.doc application/msword
.dot application/msword
.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
.dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
.docm application/vnd.ms-word.document.macroEnabled.12
.dotm application/vnd.ms-word.template.macroEnabled.12
.xls application/vnd.ms-excel
.xlt application/vnd.ms-excel
.xla application/vnd.ms-excel
.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xlsm application/vnd.ms-excel.sheet.macroEnabled.12
.xltm application/vnd.ms-excel.template.macroEnabled.12
.xlam application/vnd.ms-excel.addin.macroEnabled.12
.xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
.ppt application/vnd.ms-powerpoint
.pot application/vnd.ms-powerpoint
.pps application/vnd.ms-powerpoint
.ppa application/vnd.ms-powerpoint
.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
.potx application/vnd.openxmlformats-officedocument.presentationml.template
.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppam application/vnd.ms-powerpoint.addin.macroEnabled.12
.pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12
.potm application/vnd.ms-powerpoint.template.macroEnabled.12
.ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12

อื่นๆ


            'txt' => 'text/plain',
            
'htm' => 'text/html',
            
'html' => 'text/html',
            
'php' => 'text/html',
            
'css' => 'text/css',
            
'js' => 'application/javascript',
            
'json' => 'application/json',
            
'xml' => 'application/xml',
            
'swf' => 'application/x-shockwave-flash',
            
'flv' => 'video/x-flv',

            
// images
            
'png' => 'image/png',
            
'jpe' => 'image/jpeg',
            
'jpeg' => 'image/jpeg',
            
'jpg' => 'image/jpeg',
            
'gif' => 'image/gif',
            
'bmp' => 'image/bmp',
            
'ico' => 'image/vnd.microsoft.icon',
            
'tiff' => 'image/tiff',
            
'tif' => 'image/tiff',
            
'svg' => 'image/svg+xml',
            
'svgz' => 'image/svg+xml',

            
// archives
            
'zip' => 'application/zip',
            
'rar' => 'application/x-rar-compressed',
            
'exe' => 'application/x-msdownload',
            
'msi' => 'application/x-msdownload',
            
'cab' => 'application/vnd.ms-cab-compressed',

            
// audio/video
            
'mp3' => 'audio/mpeg',
            
'qt' => 'video/quicktime',
            
'mov' => 'video/quicktime',

            
// adobe
            
'pdf' => 'application/pdf',
            
'psd' => 'image/vnd.adobe.photoshop',
            
'ai' => 'application/postscript',
            
'eps' => 'application/postscript',
            
'ps' => 'application/postscript',

            
// ms office
            
'doc' => 'application/msword',
            
'rtf' => 'application/rtf',
            
'xls' => 'application/vnd.ms-excel',
            
'ppt' => 'application/vnd.ms-powerpoint',

            
// open office
            
'odt' => 'application/vnd.oasis.opendocument.text',                'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
ดูไฟล์ทั้งหมดที่ลิ้งนี้หรือคลิกอ่านเพิ่มเติม http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

Credit by http://www.iana.org/assignments/media-types/media-types.xhtml