Menu

configuration

Bring It To  Code

MOP has two files

mop.php and configuration file mopconfig.php.

FROM version 2 and after MOP has four files

mop.php, mop.php and configuration file mopconfig.php, mopconfig.php

these files must be place in the same directory.

The main file is independent which means it can work without the config file.

IF CONFIG FILE IS MISSING THESE ARE THE DEFAULT SETTINGS

LOG WARNING IS SET TO FALSE

DISPLAY ERROR IS SET TO TRUE

DRIVER IS SET TO MYSQLI

Log warning

These settings is use to log mysqli warnings, is only available or supported in mysqli connection or driver only.

If is set to true then you can follow this step on how is been used.

Display error

These settings is use to force or suppress error.

setting it to true means any error that occur will result into fatal error. eg... if one of your query is incorrect then fatal error will occur

setting it to false means any error that occur will remain invisible until you check it your self see error on how to handle error.

If there is any other error eg trying to get column that does not exist will result into fatal error if display error is set to true or false

Driver

There settings is use to connect to MYSQLI or PDO automatically without specifying

$connect = new mysql/mop($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME);

or specify if you wish

$connect = new mysql/mop($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME,'mysqli');

:::php
$connect = new mysql/mop($DB_ADDRESS,$DB_USER,$DB_PASS,$DB_NAME,'pdo');

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.