marceloxp
6/7/2013 - 8:54 PM

Save log to disk

Save log to disk

function Log($texto)
{
	$tw = $texto;
	if (is_array($texto))
	{
		ob_start();
		print_r($texto);
		$tw = ob_get_contents();
		ob_end_clean();
	}
	$fp = fopen("log.txt", "w");
	fwrite($fp, date("d/m/y d:H:is") . " " . $texto . "\n");
	fclose($fp);
}