hey i tried both of your suggestions and they both came out still downloading a file called "download"
heres both full codes of what i'm using (well in my if statement anyway)
$row = mysql_fetch_array($result);
$url = "".$row['url']."".$row['name']."";
$name = "".$row['name']."";
$query = mysql_query("UPDATE polyphonics SET dl=dl+1 WHERE id='" . $_GET["id"] . "'") or die(mysql_error());
header("Content-type: application/octet-stream");
header("Content-disposition: attachment; filename=\"$url\"");
@readfile("$url");
&
$row = mysql_fetch_array($result);
$url = "".$row['url']."".$row['name']."";
$query = mysql_query("UPDATE polyphonics SET dl=dl+1 WHERE id='" . $_GET["id"] . "'") or die(mysql_error());
@header("Content-Type: application/pdf"); //sets type
@header("Content-Disposition: attachment; filename=$url"); //gets filename
@header("Content-Description: Download File"); // describes what you are doing
@readfile($url);
i'm probably doing this wrong, i'm stupid 🙁
any more help would be great
thanks Jon 🙂