L
L
luckyjenro02021-06-05 17:18:51
PHP
luckyjenro0, 2021-06-05 17:18:51

How to make records with the output of their time?

I want to make a terminal page, as in the console, as if you write something and you, as in the terminal, gives out everything according to the records. But I don’t know how to make time for each entry:

For example, a person enters the input / find user command. He should be given in the terminal:
[TERMINAL] [here is the time] The user used the command /find the user, and for each output entry, what would be the time of its appearance in the terminal was made up and attached, I think they understood me, this is like a console)
Example:
[TERMINAL] [17:19] User "one" used the command "find in database"
[TERMINAL] [17:20] Access denied!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Monte, 2021-06-05
@Monte

If I understand correctly, then the date function is enough for you . Something likeecho date('H:m');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question