From a52c462f45ce738a496b1038218b0db7f63af867 Mon Sep 17 00:00:00 2001 From: gnieark Date: Sat, 12 Dec 2015 11:16:07 +0100 Subject: [PATCH] debog --- src/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index fb776da..aab8218 100644 --- a/src/functions.php +++ b/src/functions.php @@ -214,7 +214,8 @@ function save_battle($game,$bot1,$bot2,$resultat){ ON DUPLICATE KEY UPDATE ".$field." = ".$field." + 1;"); } function get_unique_id(){ - $fp = fopen(__DIR__.'countBattles.txt', 'c+'); + + $fp = fopen(__DIR__.'/countBattles.txt', 'c+'); flock($fp, LOCK_EX); $count = (int)fread($fp, filesize('count.txt'));