Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5202341
Hits Heute: 444
max. Hits (10.07.07): 6964
User Online: 37
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

ASP. NET- Programmierung mit VB. NET.
ASP. NET- Programmierung mit VB. NET.

Manuals > PEAR > HTTP_Download::staticSend

HTTP_Download::staticSend()

HTTP_Download::staticSend() --  Static send

Description

Send a download statically without instantiating an HTTP_Download object.

Parameter

  • array $params - An associative array of parameters:

    • one of:

      • $params['file'] - filepath

      • $params['data'] - raw data

      • $params['resource'] - resource handle

    • and any of:

      • $params['gzip'] - whether to gzip the download

      • $params['lastmodified'] - unix timestamp of last modification

      • $params['contenttype'] - content type

      • $params['contentdisposition'] - content disposition

  • bool [$guess = false] - whether to call guessContnentType()

"Content-Disposition" is not HTTP compliant, but most browsers follow this header, so it was borrowed from MIME standard.

It looks like this: "Content-Disposition: attachment; filename=example.tgz".

Return value

Returns TRUE on success, PEAR_Error on failure.

Throws

Throws PEAR_Error

Note

This function should be called statically.


Copyright 1998 - 2009 by I.S.U.M.