File Count - Forum

Forum Navigation
You need to log in to create posts and topics.

File Count

I have been looking around here and am looking for a way to count files in a given folder on a web site.

@neal-stone do you mean server side?

Yes to get the number of files in a folder and return it to a variable.  Checking if a file exists would also work.

@neal-stone using PHP it's quite simple:

Checking if a file exists:
https://www.phptutorial.net/php-tutorial/php-file-exists/

Count files in a directory:
https://www.geeksforgeeks.org/how-to-count-files-in-a-directory-using-php/

Also check the included FormSubmit sample app to understand how to send and get information from server side script.
If you don't want to use a Form Object, the same can be achieved by using neoAjax plugin commands.

Regards.

Vadim has reacted to this post.
Vadim