livrer_fichier.php
SPIP, Système de publication pour l'internet
Copyright © avec tendresse depuis 2001 Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James
Ce programme est un logiciel libre distribué sous licence GNU/GPL.
Table of Contents
Constants
Functions
- spip_livrer_fichier() : mixed
- Envoyer un fichier dont on fourni le chemin, le mime type, en attachment ou non, avec un expire
- spip_livrer_fichier_entetes() : mixed
- Envoyer les entetes du fichier, sauf ce qui est lie au mode d'envoi (entier ou par parties)
- spip_livrer_fichier_entier() : mixed
- Envoyer les contenu entier du fichier
- spip_livrer_fichier_partie() : mixed
- Envoyer une partie du fichier Prendre en charge l'entete Range:bytes=0-456 utilise par les player medias source : https://github.com/pomle/php-serveFilePartial/blob/master/ServeFilePartial.inc.php
Constants
_LIVRER_FICHIER_BASE_TEMPS_TELECHARGEMENT
public
mixed
_LIVRER_FICHIER_BASE_TEMPS_TELECHARGEMENT
= 600
Functions
spip_livrer_fichier()
Envoyer un fichier dont on fourni le chemin, le mime type, en attachment ou non, avec un expire
spip_livrer_fichier(string $fichier[, string $content_type = 'application/octet-stream' ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $fichier : string
- $content_type : string = 'application/octet-stream'
- $options : array<string|int, mixed> = []
-
bool|string $attachment int $expires int|null range
Tags
spip_livrer_fichier_entetes()
Envoyer les entetes du fichier, sauf ce qui est lie au mode d'envoi (entier ou par parties)
spip_livrer_fichier_entetes(string $fichier[, string $content_type = 'application/octet-stream' ][, bool|string $attachment = false ][, int|string $expires = 0 ]) : mixed
Parameters
- $fichier : string
- $content_type : string = 'application/octet-stream'
- $attachment : bool|string = false
- $expires : int|string = 0
Tags
spip_livrer_fichier_entier()
Envoyer les contenu entier du fichier
spip_livrer_fichier_entier(string $fichier) : mixed
Parameters
- $fichier : string
Tags
spip_livrer_fichier_partie()
Envoyer une partie du fichier Prendre en charge l'entete Range:bytes=0-456 utilise par les player medias source : https://github.com/pomle/php-serveFilePartial/blob/master/ServeFilePartial.inc.php
spip_livrer_fichier_partie(string $fichier[, string $range = null ]) : mixed
Parameters
- $fichier : string
- $range : string = null