N
N
NiKeU2019-04-03 19:05:28
PHP
NiKeU, 2019-04-03 19:05:28

How to count values ​​from multiple JSON files in PHP?

Hello!
In general, I wrote a simple monitoring (I think there is no need to explain what - what it is for), And it remains to organize the general online function. To do this, you need to calculate the sum of the values

players
from all files in the folder
online_hashes

files named
name.json
are created from a PHP handler that outputs a list of servers from
servers.json
respectively from the name value.
It remains to organize the sum of rows
players
from each such file.
I will be glad to help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2019-04-03
@Immortal_pony

https://www.php.net/manual/en/function.glob.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question