Documentation du code de SPIP et de ses plugins

SPIP

Fichier

Table of Contents

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

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
uses
spip_livrer_fichier_entetes()
uses
spip_livrer_fichier_entier()
uses
spip_livrer_fichier_partie()
throws
Exception

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
see
spip_livrer_fichier()
used-by
spip_livrer_fichier()

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
Tags
throws
Exception
used-by
spip_livrer_fichier()

        
On this page

Search results