Position actuelle: Accueil> Catégories de fonctions> filetype

filetype

Obtenir le type de fichier
Nom:filetype
Catégorie:Système de fichiers
Langage de programmation:php
Description en une ligne:Renvoie le type de fichier.

Exemple

Exemple 1

 <span class="token php language-php"><span class="token delimiter important"><? Php</span>
<span class="token keyword">Echo</span> <span class="token function">FileType</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"test.txt"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Sortir:

 déposer

Exemple 2

 <span class="token php language-php"><span class="token delimiter important"><? Php</span>
<span class="token keyword">Echo</span> <span class="token function">FileType</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"images"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

Sortir:

 diron
Fonctions similaires
  • Créer un fichier temporaire tmpfile

    tmpfile

    Créerunfichiertempor
  • Vérifiez si le fichier ou le répertoire existe file_exists

    file_exists

    Vérifiezsilefichiero
  • Modifier le mode fichier chmod

    chmod

    Modifierlemodefichie
  • Déterminez si le nom de fichier donné est exécutable is_executable

    is_executable

    Déterminezsilenomdef
  • Créer un nouveau répertoire mkdir

    mkdir

    Créerunnouveaurépert
  • Établir une connexion symbolique symlink

    symlink

    Établiruneconnexions
  • Définir l'accès au fichier et le temps de modification touch

    touch

    Définirl'accèsau
  • Supprimer le répertoire rmdir

    rmdir

    Supprimerlerépertoir