create first tests
This commit is contained in:
parent
8071ee5a0a
commit
2387082e88
5 changed files with 52 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue