Zusammenfassung der Dateiformate in PHP

黄舟
Freigeben: 2023-03-17 11:30:01
Original
2061 Leute haben es durchsucht

Im vorherigen Artikel haben wir Ihnen das Schreiben im PHP-Format vorgestellt. Welche anderen Dateiformate gibt es heute?

Zusammenfassung der Dateiformate in PHP

<?php  
$mime_types = array(   
&#39;gif&#39; => &#39;image/gif&#39;,  
&#39;jpg&#39; => &#39;image/jpeg&#39;,   
&#39;jpeg&#39; => &#39;image/jpeg&#39;,   
&#39;jpe&#39; => &#39;image/jpeg&#39;,   
&#39;bmp&#39; => &#39;image/bmp&#39;,   
&#39;png&#39; => &#39;image/png&#39;,   
&#39;tif&#39; => &#39;image/tiff&#39;,   
 
 
&#39;tiff&#39; => &#39;image/tiff&#39;,   
&#39;pict&#39; => &#39;image/x-pict&#39;,   
&#39;pic&#39; => &#39;image/x-pict&#39;,   
&#39;pct&#39; => &#39;image/x-pict&#39;,   
&#39;tif&#39; => &#39;image/tiff&#39;,   
&#39;tiff&#39; => &#39;image/tiff&#39;,   
 
&#39;psd&#39; => &#39;image/x-photoshop&#39;,   
 
&#39;swf&#39; => &#39;application/x-shockwave-flash&#39;,   
&#39;js&#39; => &#39;application/x-javascrīpt&#39;,   
&#39;pdf&#39; => &#39;application/pdf&#39;,   
&#39;ps&#39; => &#39;application/postscrīpt&#39;,   
&#39;eps&#39; => &#39;application/postscrīpt&#39;,   
 
&#39;ai&#39; => &#39;application/postscrīpt&#39;,   
&#39;wmf&#39; => &#39;application/x-msmetafile&#39;,   
 
&#39;css&#39; => &#39;text/css&#39;,   
&#39;htm&#39; => &#39;text/html&#39;,   
&#39;html&#39; => &#39;text/html&#39;,   
&#39;txt&#39; => &#39;text/plain&#39;,   
&#39;xml&#39; => &#39;text/xml&#39;,   
&#39;wml&#39; => &#39;text/wml&#39;,   
&#39;wbmp&#39; => &#39;image/vnd.wap.wbmp&#39;,   
 
&#39;mid&#39; => &#39;audio/midi&#39;,   
&#39;wav&#39; => &#39;audio/wav&#39;,   
&#39;mp3&#39; => &#39;audio/mpeg&#39;,   
 
&#39;mp2&#39; => &#39;audio/mpeg&#39;,   
 
&#39;avi&#39; => &#39;video/x-msvideo&#39;,   
&#39;mpeg&#39; => &#39;video/mpeg&#39;,   
&#39;mpg&#39; => &#39;video/mpeg&#39;,   
&#39;qt&#39; => &#39;video/quicktime&#39;,   
&#39;mov&#39; => &#39;video/quicktime&#39;,   
 
&#39;lha&#39; => &#39;application/x-lha&#39;,   
&#39;lzh&#39; => &#39;application/x-lha&#39;,   
&#39;z&#39; => &#39;application/x-compress&#39;,   
&#39;gtar&#39; => &#39;application/x-gtar&#39;,   
&#39;gz&#39; => &#39;application/x-gzip&#39;,   
&#39;gzip&#39; => &#39;application/x-gzip&#39;,   
&#39;tgz&#39; => &#39;application/x-gzip&#39;,   
&#39;tar&#39; => &#39;application/x-tar&#39;,   
&#39;bz2&#39; => &#39;application/bzip2&#39;,   
&#39;zip&#39; => &#39;application/zip&#39;,   
&#39;arj&#39; => &#39;application/x-arj&#39;,   
&#39;rar&#39; => &#39;application/x-rar-compressed&#39;,   
 
&#39;hqx&#39; => &#39;application/mac-binhex40&#39;,   
&#39;sit&#39; => &#39;application/x-stuffit&#39;,   
&#39;bin&#39; => &#39;application/x-macbinary&#39;,   
 
&#39;uu&#39; => &#39;text/x-uuencode&#39;,   
&#39;uue&#39; => &#39;text/x-uuencode&#39;,   
 
&#39;latex&#39;=> &#39;application/x-latex&#39;,   
&#39;ltx&#39; => &#39;application/x-latex&#39;,   
&#39;tcl&#39; => &#39;application/x-tcl&#39;,   
 
&#39;pgp&#39; => &#39;application/pgp&#39;,   
&#39;asc&#39; => &#39;application/pgp&#39;,   
&#39;exe&#39; => &#39;application/x-msdownload&#39;,   
&#39;doc&#39; => &#39;application/msword&#39;,   
&#39;rtf&#39; => &#39;application/rtf&#39;,   
&#39;xls&#39; => &#39;application/vnd.ms-excel&#39;,   
&#39;ppt&#39; => &#39;application/vnd.ms-powerpoint&#39;,   
&#39;mdb&#39; => &#39;application/x-msaccess&#39;,   
&#39;wri&#39; => &#39;application/x-mswrite&#39;,   
);   
 
?>
Nach dem Login kopieren

Zusammenfassung:

Nachdem ich dies gelesen habe Dieser Artikel geht davon aus, dass jeder ein neues Verständnis der Dateiformate in PHP hat. Lassen Sie sich also nicht verwirren. Ich hoffe, dass er für Sie hilfreich ist.

Verwandte Empfehlungen:

Beispiel für das Schreiben des PHP-Formats


Ein sehr umfassendes Tutorial zu PHPCMS und PHP-Formatierungszeitstempeln


Was ist eine PHP-Datei? Wie öffnet man es? Vier Möglichkeiten, Dateien im PHP-Format zu öffnen (Bild)

Das obige ist der detaillierte Inhalt vonZusammenfassung der Dateiformate in PHP. Für weitere Informationen folgen Sie bitte anderen verwandten Artikeln auf der PHP chinesischen Website!

Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!