View Full Version : paFileDB Integration Error
Funkworkz
06-25-2004, 08:54 PM
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 -
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
$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]");
?>
http://forum.exius-ent.com/pafiledb.php
CarCdr
06-26-2004, 11:04 AM
I believe there is a trailing space at the end of the PHP code you pasted. That would do it.
Dean C
06-26-2004, 11:11 AM
Nothing should be outputted or processed before a header is outputted :)
Funkworkz
06-26-2004, 05:32 PM
Well, there is not a trailing space, I tried moving the header tag above the rest of the code, no luck. Could there be any other way to re-write the PHP code I pasted to bypass the header tag?
13th_Disciple
06-26-2004, 08:12 PM
funworkz.. i would be interested to know how you did your bit of integration there.. do you allow user uploads and are those who registered thru the forums considered members thru pafiledb or do you have it open to guest uploads or uploads turned completely off?
your integration looks a lot like the deal i am using now but goes that extra step in creating a simgle page per file instead of downloading from the full list like the hack i am currently using..
Funkworkz
06-26-2004, 08:20 PM
I am working on it at the moment, I am planning on including permissions for usergroups, but probably not in the first release. I modded the standard paFileDB files to no end, so I hope I can get Todd (paFileDB Dev) to let me distribute the files instead of making a huge novel of a text file for everyone to mod.
I do not have user uploads currently on the mod, but I probably will have it in a future release.
Now I am trying to fix the header error it gives you and finish the AdminCP. I will post pictures of my current work so far if anyone wants.
13th_Disciple
06-26-2004, 08:25 PM
yeah man.. i am really interested in this.. i have thought about doing this myself.. but thought it a bit too ambitious a deal to attempt as my first hack.. besides, i don't know if document well enough to release anything.. i just do and then forget what i did.. but i am very interestd in your project..
Funkworkz
06-26-2004, 08:32 PM
Well, I'm glad to see some people would want this. I will post some pictures when I get done with more of the mod.
Some help with the error above would be nice. ;)
13th_Disciple
06-26-2004, 08:43 PM
i don't know enough about pafiledb to even make an educated guess.. sorry man.. :(
however, have you asked at the pafiledb forums to see if anyone else may be able to give you some insight?
Funkworkz
06-26-2004, 08:45 PM
Yea, their forums are almost always dead.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.