Mailinglisten-Archive |
k.nordmann_(at)_bbdo-interactive.de wrote:
> Ich weiss auch, dass es dazu Header-Commands gibt, die man unter PHP
> verwendet, nur
> kann ich leider nicht herausfinden, was ich da wie einzusetzen habe.
>
> Kann mir mal jemand einen Schubs in die richtige Richtung geben?
Ja, aber nicht fallen.
http://www.php.net/manual/function.header.php3, Zitat:
"<p>Setting the File Name in a Download Dialog.</p> <p>If you
want to "suggest" a file name for a download to a browser, you
can do this via the header:</p> header( "Content-type:
application/x-gzip" ); header( "Content-Disposition: attachment;
filename=some-file.tar.gz" ); header( "Content-Description: PHP3
Generated Data" );"
Und noch etwas aus der CGI Specification,
http://www.ford-mason.co.uk/resources/stw/node215.html#SECTION08412000000000000000000,
Zitat:
"The output from the CGI script is read by the server and usually
passed on to the requesting client. The
output is interpreted as a set of MIME-type HTTP headers,
followed by a single blank line, followed by the
data. The output may consist of just a single line containing:
Location: url"
Eine lange Liste von Mime-Types, findest Du z.B. im
Konfigurationsverzeichnis des Apachen in der Datei "mime.types".
Jetzt hoffe ich noch, daß jemand die vorgeworfenen Brocken
verdaut und in Lexikonversion ausgibt.
Ulf
--
Ulf Wendel
NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany
Fon: +49 431 386435 00 -- Fax: +49 431 386435 99
php::bar PHP Wiki - Listenarchive