c028d7ada8cd9ecd677ff5b68ae589439381490a
[atutor.git] / mods / wiki / fragments / binary.php
1 <?php
2
3 /*
4   If you cannot manage to include() the core "ewiki.php" library
5   before any plain <HTML> output is made inside "yoursite.php", you
6   could use such a lib wrapper beside yoursites/index.php
7
8   It is also useful, if you want to keep binary data in a separate
9   database, say a db_flat_files one - because you can then set this up
10   herein without any affect to yoursites/ewiki.php
11   
12   Try also the new "z.php" wrapper instead, which provides access
13   to ?binary= database entries.
14 */
15
16
17  # remember to define() inside ewiki.php or yoursite.php:
18  define("EWIKI_SCRIPT_BINARY", "binary.php?binary=");
19
20
21  #-- that's all:
22  mysql_connect("localhost", "DBUSER", "DBPASSWORD");
23  mysql_query("use DATABASENAME");
24
25  include("ewiki.php");
26
27 ?>