1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
libphp-adodb for Debian
-----------------------
I. Using the ADOdb PHP library
-------------------------------
By default, the scripts are installed in a directory that is
already in PHP's default include path, /usr/share/php, in the
adodb directory. To access the scripts, you only need to do:
<?php
include('adodb/adodb.inc.php');
?>
If you need direct access to the ADOdb files, you should add
the adodb include path to your php.ini file in (e.g.)
/etc/php/7.0/apache2/php.ini:
include_path = ".:/usr/share/pear:/usr/share/php4:/usr/share/php/adodb"
After this you can easily include the scripts without the full
path the to ADOdb library:
<?php
include('adodb.inc.php');
?>
Sample scripts can be found under /usr/share/doc/libphp-adodb/examples/
You _MUST_ also install the PHP package for each database you would like
to use in your PHP scripts with ADOdb:
e.g. for mysql:
# apt-get install php-mysql
II. Installing icons in apache
-------------------------------
This is an example configuration to setup your apache web-server to use
the ADOdb icons:
Alias /adodb-icons/ /usr/share/php/adodb/icons/
<Directory /usr/share/php/adodb/icons>
Options Indexes MultiViews
AllowOverride None
Require all granted
</Directory>
III. Using sql-based sessions
-------------------------------
Under /usr/share/doc/examples/session you can find some sql scripts to create
tables, which can be used to store apache sessions into it. Please consult
the documentation of your database, about how you can install/apply those
scripts.
For more details, please have a look at: adodb-sess.txt (in this directory)
|