Installation of ApPHP DataForm
Installation of ApPHP DataForm
A new installation of ApPHP DataForm is a very straight forward process:
Step 1. Uncompressing downloaded file.
Uncompress the ApPHP DataForm script archive. The archive will create a directory called "PHPDF_XYZ", where XYZ - is a number of current version.
Step 2. Uploading files.
Upload content of sub-directory dataform/ (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/dataform/
Step 3. Creating database.
Using your hosting Control Panel, phpMyAdmin or another tool, create your database and user, and assign that user to the database. Provide the user you created with required permissions to allow the user to read, edit, execute and perform all tasks across all the databases and tables (SELECT, UPDATE, DELETE etc.). Write down the name of the database, username, and password for the site installation procedure.
Create all needed 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='user_username'; /* usually like this: prefix_name */ $DB_PASS='user_password'; /* must be strong (recommended) */ $DB_HOST='localhost'; /* usually localhost */ $DB_NAME='db_name'; /* usually like this: prefix_dbName */
Uncomment next lines of code and define a relative path to dataform.class.php file (relatively to the code_template.php file).
/* Ex.: "dataform/" or "../dataform/" */ define ("DATAFORM_DIR", ""); require_once(DATAFORM_DIR.'dataform.class.php');
Step 5. Renaming code_template.php file.
Rename code_template.php file according to your needs, such as first_example.php and then type in your browser:
http://your_site/dataform/first_example.php
Step 6. Additional settings (optional).
Set allow_call_time_pass_reference to true in your php.ini file.