Cette fonction vous permettra de limiter volontairement la vitesse de téléchargement d'un ficher stocké sur un serveur local.
La vitesse est à indiquer en Kbps.
Auteur : Christophe Fantoni (Nexen)
|
| php.net | Description | Versions PHP | OUTIL |
|---|---|---|---|
| echo | Affiche une chaîne de caractères | PHP 4, PHP 5, PHP 7, PHP 8 | |
| fclose | Ferme un fichier | PHP 4, PHP 5, PHP 7, PHP 8 | |
| feof | Teste la fin du fichier | PHP 4, PHP 5, PHP 7, PHP 8 | |
| filesize | Renvoie la taille d'un fichier | PHP 4, PHP 5, PHP 7, PHP 8 | |
| file_exists | Vérifie si un fichier existe | PHP 4, PHP 5, PHP 7, PHP 8 | |
| flush | Vide les tampons de sortie | PHP 4, PHP 5, PHP 7, PHP 8 | |
| fopen | Ouverture d'un fichier ou d'une URL | PHP 4, PHP 5, PHP 7, PHP 8 | |
| fread | Lecture du fichier en mode binaire | PHP 4, PHP 5, PHP 7, PHP 8 | |
| header | Envoie un en-tête HTTP | PHP 4, PHP 5, PHP 7, PHP 8 | |
| is_file | Indique si le fichier est un véritable fichier | PHP 4, PHP 5, PHP 7, PHP 8 | |
| round | Arrondi un nombre à virgule flottante | PHP 4, PHP 5, PHP 7, PHP 8 | |
| sleep | Stoppe l'exécution durant quelques secondes | PHP 4, PHP 5, PHP 7, PHP 8 | |
16 Fév 2019
Dernière mise à jour :