I
I
Igor Kaspersky2015-10-18 21:40:02
css
Igor Kaspersky, 2015-10-18 21:40:02

How to calculate the number of files in a folder and store the number in a variable?

Is it possible to find the number of files in a folder using jquery? Not on js, I found it on pure js, but I don’t know how to combine it with jquery, it probably sounds stupid), and it’s not necessary, what can you tell me?

$dir = opendir (".");
$i=0;
  while ($file = readdir ($dir)) 
   $i++;

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2015-10-19
@HHabar

Oh gods why are you starting with a toaster? Start learning with the general basics of programming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question