Read Remote Directory With Client-side Javascript?
I'd like to scan a directory on my server, using JS, and create a link to the most recent file in the dir. My server doesn't disallow directory listings; I can see the contents of
Solution 1:
All Javascript can do is HTTP requests and read whatever your server responds with. If your server doesn't give you any sort of directory listing over HTTP, then there's very little you can do with Javascript. If it does give you a directory listing you could try to parse it, but you still can't create any files or links on the server purely with client-side Javascript. This really calls for a server-side solution (PHP, Python, Ruby, C#, shell scripts; whatever you're comfortable writing).
Post a Comment for "Read Remote Directory With Client-side Javascript?"