Skip to content

Instantly share code, notes, and snippets.

View mcgivrer's full-sized avatar
🌐
Work onto a Platform !

Frédéric Delorme mcgivrer

🌐
Work onto a Platform !
View GitHub Profile
<?php
/**
* Cache manager.
* if a cache file named following url'ification rules already exists,
* the file is serve in place of generated one with PHP scripting.
* Files are store into a default cache path "../cache/" relatively to the root
* of web site (htdocs, in apache world).
*
* Extracted from http://github.com/mcgivrer/Games project
*
<?php
/**
* Configuration file: retrieve config.ini file (set your own path)
* and load it into an array. use the <code>__config(group,key)</code> to
* retrieve value from config.ini file.
* @author Frédéric Delorme<[email protected]>
* @version 11/07/2010
*/
class Config{
static $_instance = null;
<?php
/**
* Debug class : output debug message to interface & file.
* @author Frédéric Delorme<[email protected]>
*/
include_once("private/modules/error.class.php");
class Debug{
private static $_instance = null;
private static $path="";
private static $messages = array();