|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesangosson (last revision 2015-09-02 11:52 UTC by admin at angosso dot net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-09-02 13:17 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Package: Java related
+Package: *General Issues
-Assigned To:
+Assigned To: cmb
[2015-09-02 13:17 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 18:00:02 2025 UTC |
Description: ------------ Function adds a MIME type to Apache LiveAPI PHP Class mod_php-4.4.0-r9 apache-2.0.54-r31 unable to upgrade to 7. Centos has not marked it stable yet. mime_content_type() always returns a blank value. echo mime_content_type('xface.jpg'); Test script: --------------- $cpanel = new CPANEL(); // Connect to cPanel - only do this once. // Add MIME type of text/foo to .foo $mime_add_mime = $cpanel->uapi( 'Mime', 'add_mime', array( 'type' => 'text/index', 'extension' => '.exemple', ) ); Error: The view for HomeController::display() was not found. Error: Confirm you have created the file: /home/angosson/rvnewsit/public_html/app/View/Themed/Rvglobal/Home/rundemo.tpl Notice: If you want to customize this error message, create app/View/Errors/missing_view.ctp Expected result: ---------------- ext string Required The file extension to associate with the MIME type. Any valid file extension. .txt Creates a link to an object