Page 1 of 1

Save target instead of streaming

Posted: Mon Apr 13, 2009 8:33 pm
by vr_fox
Script URL: PHP Click Counter 1.2
Version of script:PHP Click Counter 1.2
Hosting company: ?
URL of phpinfo.php: ?
URL of session_test.php: ?
What terms did you try when SEARCHING for a solution:

Write your message below:
Hello, i don't know much about php but this thing works fine, but i'm using it to count downloads of mp3 files, but whe i click the link it start windows media player instead of asking me to save... is there a way to change this or better to have play in one link and other to ask you where to save the file. Thanks

Posted: Tue Apr 14, 2009 11:41 am
by Klemen
You can try replacing this code in click.php

Code: Select all

Header('Location: '.$url); 
to something like

Code: Select all

?>
<html>
<head>

<meta http-equiv="refresh" content="15;url=<?php echo $url; ?>">

<title>Redirecting...</title>
</head>
<body bgcolor="#FFFFFF">
<p>&nbsp;</p>

<p>Redirecting, <a href="<?php echo $url; ?>">click here</a> if the browser doesn't redirect you shortly.</p>

</body>
</html> 

<?php