Installation of PHP DataGrid (Find latest version here)
From DataGrid Wiki
Contents |
Installation of PHP DataGrid
(for version 4.0.0 or above)
A new installation of PHP DataGrid is a very straight forward process:
This article in other languages: German Spanish French
Step 1. Uncompressing downloaded file.
Uncompress the PHP DataGrid version 4.x.x script archive. The archive will create a directory called "datagrid_4_x_x"
Step 2. Uploading files.
Upload content of this folder (all files and directories it includes) to your document root (public_html, www, htdocs etc.) using FTP.
For example:
public_html/your_site/datagrid
Step 3. Creating database.
Using phpMyAdmin or another tool, create your database and user, and assign that user to the database. Write down the name of the database, username, and password for the database installation procedure.
Create all appropriate database tables.
Step 4. Editing some important values.
Open code_template.php file, uncomment these 4 lines and change variable values on yours (saved on step 3).
$DB_USER='name'; /* usually like this: prefix_name */ $DB_PASS=' '; /* must be already enscrypted (recommended) */ $DB_HOST='localhost'; /* usually localhost */ $DB_NAME='dbName'; /* usually like this: prefix_dbName */
Define a relative path to datagrid.class.php file and "pear"
directory (relatively to the code_template.php file).
define ("DATAGRID_DIR", ""); /* Ex.: "datagrid/" */ define ("PEAR_DIR", "pear/"); /* Ex.: "datagrid/pear/" */ require_once(DATAGRID_DIR.'datagrid.class.php'); require_once(PEAR_DIR.'PEAR.php'); require_once(PEAR_DIR.'DB.php');
Step 5. Renaming code_template.php file.
Rename code_template.php file according to your needs.
Congratulations, you now have PHP DataGrid
v.4.x.x. Installed!