php - file --mime doc.html return : doc.html: text/x-c++; charset=utf-8 on debian -


have problem on use php mimetype detection. think related debian config files command :

file --mime doc.html 

return : doc.html: text/x-c++; charset=utf-8

doc.html file: http://dpaste.com/hold/1709425/ tried

<?php echo mime_content_type('doc.html') ;?> 

that return: text/x-c++ when use command :

mimetype doc.html 

return text/html. problem cause on using ojs when upload html files detect text/x-c++ , name untitled instead of html read ojs faq problem , try them no success http://pkp.sfu.ca/wiki/index.php/pkp_frequently_asked_questions#html_galleys_don.27t_display_properly_.2f_files_i_upload_aren.27t_being_identified_properly.

i found solution, related special character inside html codes. when use site: http://infohound.net/tidy/ make html code clean, ojs detect html code , command: file --mime doc.html detect file , html


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -