<?php function sqllog($id_partie, $sql){ $fp = fopen("../logs/sqllog_" . (int)$id_partie . ".txt", "a+"); fwrite($fp, $sql . "\n"); fclose($fp); return $sql; } ?>