Save target instead of streaming

Post your Click counter digestion problems here
Post Reply
vr_fox
Posts: 1
Joined: Mon Apr 13, 2009 8:27 pm

Save target instead of streaming

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply