• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

JavaScript Help - Counting Files in a Directory

SaturnX

Diamond Member
Hey Everyone,

Would there be any possible way for to write up a small script that counts the number of files in a given folder?

The web server is running Linux, if that's any help, but I've been trying to figure this out.. but I'm not having any luck.

If anyone could help me out that'd be great... thanks!

--Mark
 
javascript is a client-side script. so it is not possible to do anything on the server side.
for server side stuffs, you would want to look at php, perl, or other scripting languages

(well, actually, that was a lie .. there are some server-side javascript, but i think you have to change the server settings and what not.. but since i don't know much about server side javascript, i'd say try perl/cgi or php for that).
 
Hrmm.. that's what I was thinking.. since I really couldn't come up with anything... hrmm.. alrite... well then I'll go throw something together in Perl...

--Mark
 
Back
Top