Copy this code and paste it in your HTML
<?
function debug($texto){
file_put_contents
(PATH
.'/log.log',date('d/m/Y H:i:s').' - '.$texto."",FILE_APPEND);
echo date('d/m/Y H:i:s').' - '.$texto."<br>";
return;
}
#Ej
debug('iniciando proceso...');
?>