create first tests

This commit is contained in:
j3d1 2020-01-18 00:39:45 +01:00
parent 8071ee5a0a
commit 2387082e88
5 changed files with 52 additions and 22 deletions

View file

@ -1,7 +1,9 @@
<?php
function log_error(string $message){
file_put_contents('../php_errors.log', $message.PHP_EOL , FILE_APPEND | LOCK_EX);
if(!file_exists("../logs"))
mkdir("../logs");
file_put_contents('../logs/php_errors.log', $message.PHP_EOL , FILE_APPEND | LOCK_EX);
}
$width = 200;