Installation of ApPHP DataGrid


Installation of ApPHP DataGrid


A new installation of ApPHP DataGrid is a very straight forward process

Step 1. Uncompressing downloaded file.


Uncompress the ApPHP DataGrid script archive. The archive will create a directory called "PHPDG_xxx".


Step 2. Uploading files.


Upload content of sub-directory datagrid/ (all files and sub-directories it includes) to your document root (public_html, www, httpdocs etc.) using FTP.

Pay attention: DON'T use the capital letters in the name of the folder (for Linux users).

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 needed database tables.


Step 4. Editing some important values.


Create a new PHP file, using as example datagrid/code_template.php, uncomment following lines of code and change values of variables on yours (saved on step 3).
$DB_USER='db_user';       /* usually like this: prefix_name          */
$DB_PASS='db_password';   /* must be strong-generated (recommended)  */
$DB_HOST='localhost';     /* usually localhost                       */
$DB_NAME='db_name';       /* usually like this: prefix_dbName        */
Define a relative path to datagrid.class.php file (relatively to the code_template.php file).

NEW SYNTAX (v7.0.0 or higher):
/* Ex.: 'datagrid/' or '../datagrid/' */
define ('DATAGRID_DIR', '');                             
require_once(DATAGRID_DIR.'datagrid.class.php');        
OLD SYNTAX:
/* Ex.: 'datagrid/' or '../datagrid/' */
/* Ex.: 'datagrid/pear/' or '../datagrid/pear/' */
define ('DATAGRID_DIR', '');    
define ('PEAR_DIR', '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, such as first_example.php or any other and then type in your browser:
http://your_site/datagrid/first_example.php


Step 6. Additional settings (optional).


Set allow_call_time_pass_reference to true in your INI file.

Congratulations, you now have ApPHP DataGrid installed!


Create Your Free Account
Please remember that this information is essential to use our services correctly.
After creating the account you will be able to download all of our FREE products.
Fields marked with * are mandatory






Please send me information about updates, new products, specials and discounts from ApPHP!
We recommend that your password should be at least 6 characters long and should be different from your username/email. Please use only letters of the English alphabet to enter your name.

Your e-mail address must be valid. We use e-mail for communication purposes (order notifications, etc). Therefore, it is essential to provide a valid e-mail address to be able to use our services correctly.

All your private data is confidential. We will never sell, exchange or market it in any way. Please refer to Privacy Policy.

By clicking "Create Account", you are indicating that you have read and agree to the ApPHP Terms & Conditions.