3.1 BNBTPHP (MySQL + PHP)

Please read this entire document.

BNBTPHP is a MySQL + PHP frontend for BNBT. You will need a PHP capable webserver and a MySQL server to use BNBTPHP. In most cases, you will run BNBT and BNBTPHP on the same server. Only advanced users should use BNBTPHP - regular users are encouraged to try BNBT's internal database before moving to BNBTPHP.

3.1.1 Installing BNBTPHP

You should install BNBTPHP before configuring BNBT to access your MySQL server since BNBTPHP creates the database and several tables for BNBT. To install BNBTPHP, copy the bnbtdir/bnbtphp folder into a folder accessible from your PHP capable webserver. Ensure ./include/config.inc.php has global write access before continuing. Access ./install.php from your web browser and follow the instructions. If you aren't using the ALLOWED table, please leave allowed_dir blank when you install BNBTPHP or else BNBTPHP won't function correctly.

3.1.2 Configuring BNBT

You should install BNBTPHP before configuring BNBT to access your MySQL server since BNBTPHP creates the database and several tables for BNBT. To configure BNBT to access your MySQL server, start BNBTMySQL.exe (or bnbtmysql for non Windows users). BNBT should exit almost immediately because it hasn't been properly configured, but it will generate the bnbt.cfg file (if it doesn't exit press Ctrl-C when you see "server - start"). Open bnbt.cfg in a text editor and fill in all the keys that start with "mysql_". I will cover the three most complicated keys below (if you are unsure about the other keys, see section 2.3),

3.1.3 The ALLOWED Table

TODO

3.1.4 The TORRENTS Table

TODO

3.1.5 The DSTATE Table

TODO