newfilename
is the suggested filename for the user to save the file. Or it will default to the filename on the serverside if you leave it empty, like this:.htaccess
. This will keep a 'nice' URL (myfile.pdf
instead of download.php?myfile
).window.open()
to open a new window with the file.Download
attribute. <a href='pdf_server_with_path.php?file=pdffilename&path=http://myurl.com/mypath/'>Download my eBook</a>