Requirements

WARNING ! As I don't have much time, I only test this application with the last version of Firefox browser. I know that it doesn't work with IE nor with safari. If you have some patch, I will happily accept it :)

PHP BookIn is PHP application with alot of javascript. Datas are stored on a MySQL database. Favicons (that small icons just on the left of the url input zone) are stored on the server filesystem.

So here is what you will need to install BEFORE PHP BookIn:

Some external libs are used too. They are included in this package :

Install

  1. Untar on a directory inside your website.
  2. Create "icons" directory (with read/write access for the server).
  3. Copy the bookin.conf.sample to bookin.conf, then adapt the bookin.conf file and protect it whith a .htaccess (on my system, the .conf is not in the DocumentRoot).
  4. Adapt the utils.php file.
  5. Create database, adapt and use tables.sql file to create tables.
  6. Create a user in database, table "bkn_user" (ex: "INSERT INTO bkn_user (login, password, lang) VALUES ('myname', 'mypass', 'EN') ;"). The password is in clear (I have to change that in future)
  7. Change the path in ThemeXP/theme.js (line 2) according to your configuration
  8. You may use the "checkp.php" script to see if everything is ok.
  9. Go on web.

Upgrade

  • From v0.5 to v0.5.1

    The simplest way to update files is to overwrite the old install.
    You will then have to reconfigure the bookin.conf and the utils.php.
    Please be carefull to not erase the icons dir else you will loose all the favicon already dowloaded.
    You may erase some files : bookin/tpl/index_* (there's only one index.tpl file now), bookin/template.inc (no more used).

Upgrade

  • From v0.5.1 to v0.6

    Use the migration script provided in sql/ directory. Then follow the precedent advices (from v0.5 to v0.5.1).

Smart URLs

  • From the v0.6, you can publish a category. The url created for a publication "test" is /bookin/publish.php?url=test. If you want to have smart urls like /bookin/publish/test, just add these two lines in your apache configuration :

    RewriteEngine on
    RewriteRule ^/bookin/publish/(.*) /bookin/publish.php?url=$1 [L]