Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Attachment header
AndyPSV
post
Post #1





Grupa: Zarejestrowani
Postów: 393
Pomógł: 5
Dołączył: 6.02.2003
Skąd: The.Luciferian.Doctrine.p
df

Ostrzeżenie: (30%)
XX---


Witam,

mam strone: www.foreverthemostimportant.com/

z kodem:

Kod
<?php

//exit(header('Location: http://xernt.com/The-Most-Important-Knowledge-You-would-Ever-Read-Implement-and-Live-up-to-Forever'));

header("Content-type:application/pdf");
header("Content-Disposition:attachment;filename='The.Most.Important.Knowledge.You.would.Ever.Read.Implement.and.Live.up.to.Fo
rever.pdf'");
readfile("The.Most.Important.Knowledge.You.would.Ever.Read.Implement.and.Live.up.to.Fo
rever.pdf");

?>


I teraz jak ja otworze i pobiore plik: to sie biala strona wyswietla, a chce aby zamiast tej bialej - wyskoczyla strona napisana w HTML i zeby ten plik sie pobral (tak jak wyskakuje "zapisz").

Jak to zrobic?

Dziekuje
Go to the top of the page
+Quote Post

Posty w temacie
- AndyPSV   Attachment header   3.12.2013, 17:31:26
- - nospor   Bo to sie robi tak, ze najpierw otwierasz strone k...   4.12.2013, 11:03:42


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.10.2025 - 15:06