Configuration
Configuration of koolphp is very simple. the configuration file is under include/setting. You must open the config.inc.php file for the modification purpose.
Warning: At the top of the config.inc.php file there are some php code please do not delete them, it is for the the security of your config.inc.php
;+=======================================+
; +ILLEGAL ACCESS TO THIS FILE+
; +Please do not access this file again+
+=======================================+
"; exit; ?>
[images]
thumbnail = 100x150
small = 50x50
large = 300x300
extra = 500x500
[database]
host = localhost
username = root
password =
database = phpdoc
extension = phpdoc_
[ftp]
host = 127.0.0.1
username = newclass
password = newclass
initial = /upload/
[email]
host = 127.0.0.1
username = newclass
password = newclass
port = 25
sendtype = 1
[general]
baselocation = /research/phpdoc/
title = KOOLPHP
description = KoolPHP description
keywords = koolphp data
copyright = Radiance Technologies
company = KOOLPHP
The [images] tag will help to make the dynamic thumbnails, for example in the above example you have section with large = 300x300 , Large is considered as a folder name
URL: http://www.koolphp.com/large/images/sample.jpg
In the above URL the koolphp php class will convert the images/sample.jpg file in 300x300 size image ( if it larger then this size )
Database configuration
The database configuration is made from the [database] section
host = <Your host address the location where mysl server is locate>
username = <Mysql server username>
password = <Password to the mysql usernaem>
database = <mysql database name>
extension = <prefix to the table>
This configuration are used when you use the database class or the backoffice section
FTP configuration
The ftp configuration is used while uploading the file from the form, The normal upload require a 777 permission which is dangerous to you site, most of the hacker use it for hacking into the site
host = Adress to the ftp server
username = ftp username
password = ftp password
initial = the complete path where you want to upload the file
Email configuration
Mail function sometime fail to deliver the mail into the inbox, or you have the limitation to the send the mail using mail function, So koolphp deliver the mail using the SMTP method, You can configure the mail function functionalty at [email]
[email]
host = Your smtp server path
username = username for the SMTP server
password = Password for your username
port = port at which your smtp work
sendtype = <1 = send mail from SMTP / 0= send mail from mail function >
Some of the genral configuration it is not required but helpful
[general]
baselocation = Path to the folder you have installed the KOOLPHP if installed at root it will be /
title = Default title to page
description = Default meta tag description
keywords = Default keywords
copyright = Copyright tags
company = Your company name