corz.org uses cookies to remember that you've seen this notice explaining that corz.org uses cookies, okay!
<?php
/*some sample source code from the source folder
*/
echo 'I am only a poor sample';
debug('a poor sample');
/*
function:debug()
*/
function debug($data) {
global $debug_string;
if ($data == 'out') {
$debug_string .= "\n\n";
if (file_exists('debug.out')) {
$debug_file = fopen('debug.out', 'w');
fputs($debug_file, $debug_string);
fclose($debug_file);
}
} else { $debug_string .= $data; }
}/*
end function debug()
*/
debug('out');
?>