Hello.
I am trying to set a timeout for a portion of my code that is inside of a for() loop, and the function receives a variable thats known to the function within which the for() loop takes place, a global (to that function) var array...
yeah that was it. obvious enough it seems.
i just need one more thing. this will be sweet if works:
i need to execute this cgi from an html page, for javascript processing of the returned string (i changed the printing from the text file to just simple print output).
i have not found any way to...
Sorry, one last question. When calling the script like this:
http://www.dubfilter.com/cgi-bin/album/dirlist.cgi?filedir=test it displays the contents of a 'test' folder located in the same directory (http://www.dubfilter.com/cgi-bin/album/test/).
How would I be able to specify a different...
thanks!
so to use this, i'll have to create a .cgi file like this:
#!/usr/bin/perl
# *** http://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/31/pid/452/qid/342124 ***
opendir DIR, $filedir or die "Could not open $filedir directory: $!";
while ( @files = readdir DIR ) {...
Is there any way to read a folder's contents and display all the file names using CGI that will be hosted on the same server?
I need to be able to list the contents of a specific folder in a simple text file.
Thanks for any help/advice.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.