View Single Post
Old 12-06-2012, 12:54 AM   PM User | #7
rpcob
New to the CF scene

 
Join Date: Aug 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
rpcob is an unknown quantity at this point
Quote:
Originally Posted by Redcoder View Post
Check out $_GET contents of url, like $_GET['url'] and you'll have the url of the file, then you parse the URL to get the name of the specific file. Icrement it and use headers to 'push' the download to the users browsers.
How do I do this without sending them to another page as well as get the headers and counter added included?

PHP Code:
<?php
$varFile 
$_GET["http://url.com/files/'.$filename.'"];
?>
My url already looks like: http://url.com/display.php?nav=display&file=4959

Last edited by rpcob; 12-06-2012 at 12:58 AM..
rpcob is offline   Reply With Quote