I am getting this header error, It is something to do with vB's header info, I cannot find anywhere to fix this in vB. Any help would be appreciated!
Here is the error -
PHP Code:
Warning: Cannot modify header information - headers already sent by (output started at /home/exius/public_html/forum/pafiledb.php(14) : eval()'d code:17) in /home/exius/public_html/forum/downloads/includes/download.php on line 6
Here is paFileDB's code that effects this -
PHP Code:
<?php
$file = $pafiledb_sql->query($db, "SELECT * FROM $db[prefix]_files WHERE file_id = '$id'", 1);
$time = time();
$update = $pafiledb_sql->query($db, "UPDATE $db[prefix]_files SET file_dls=file_dls+1, file_last=$time WHERE file_id = '$id'", 0);
if ($download == 1) { startdl(); exit; }
header("Location: $file[file_dlurl]");
?>