-
Notifications
You must be signed in to change notification settings - Fork 9
Useful Functions, Constants, Variables
RedDragonWebDesign edited this page Oct 30, 2020
·
17 revisions
-
Basic->get_info_filtered()- Sanitizes HTML. Similar tohtmlspecialchars() -
$mysqli->query()- The preferred way of querying the database if you are not using a class.
Try to use variables when possible.
- MAIN_ROOT - by way of
define("MAIN_ROOT", $MAIN_ROOT);in _setup.php - BASE_DIRECTORY - by way of
define("BASE_DIRECTORY", $BASE_DIRECTORY);in _setup.php
-
$MAIN_ROOT- Relative web path that is required in HTML and JS. Example:echo '<a href="'.$MAIN_ROOT.'members/index.php">My Account</a>'; -
$BASE_DIRECTORY- Absolute server path that is required when using PHP functions. Example:require_once($BASE_DIRECTORY.'members/index.php'); -
$dbprefixor$this->MySQL->get_tablePrefix()- SQL table prefix, if used. -
$prevFolder- Example:../../