Debt Consolidation - Debt Consolidation - Debt Consolidation - Debt Consolidation - Debt Consolidation

PDA

View Full Version : Newbie needs help


geekbot
May 19th 2008, 5:12 pm
Hi

I'm quiet new to javascript and I was wondering if someone could help me

I want to redirect a webpage when it loads to a pdf or zip file so the location is not readilly available. can anyone help me with this?

thanks in advance

GreatMetro
May 21st 2008, 8:38 am
If you're tryiing to hide the name of the pdf or zip file, use PHP, or another server side script to do a header redirect not javascript.

In PHP:

<?php
header('Content-Disposition: attachment; ' .'filename="YourDownload.zip"');
readfile('../downloads/actualfile.zip');
?>