Skip to content

Useful Functions, Constants, Variables

RedDragonWebDesign edited this page Sep 6, 2020 · 17 revisions

Functions

  • Basic->get_info_filtered() - sanitizes HTML, similar to htmlspecialchars()

Constants

Variables

  • $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');
  • $dbprefix - SQL table prefix, if used.

Clone this wiki locally