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");
?>
//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