Fileref:sl debug.php

From SLIS Second Life Wiki

Jump to: navigation, search

Image:folder.gif (parent)

This script should be included by all Sloodle Linker Scripts. It will disable all PHP error, warning, and notice messages, and define a constant to be true or false, depending on whether or not the "sloodledebug" request parameter is set to true.


Constants

This file defines the following constants:


Functions

This file defines the following function:


Algorithm

  1. If the debug mode parameter has been specified, store it as lower case
  2. Does the debug mode parameter equate to "true", "yes", "ok" or non-zero? If so, then:
    1. Define SLOODLE_DEBUG to boolean TRUE
    2. Enable PHP error display
    3. Set maximum PHP error reporting level
  3. else:
    1. Define SLOODLE_DEBUG to boolean FALSE
    2. Disable PHP error display


This page is part of the Sloodle documentation
SloodleDocs Home | User Documentation | Administrator Documentation | Developer Documentation | Sloodle Wiki Home