1

Perl script to display files in a folder (and delete them) via HTML

Posted by sgj700 on Jun 16, 2008 in bash and perl

Perl script to display files in a folder (and delete them) via HTML

Place this code into an “index.cgi” file, and open that file in a browser:
#!/usr/bin/perl
$dir = “<absolute path to the directory you’d like to see contents of>”;
$folder = “http://<your web server path to that directory>”;
use CGI; # load the CGI.pm module
my $GET = new [...]

Copyright © 2010 Sandon Jurowski All rights reserved.
Desk Mess Mirrored v1.2 theme from BuyNowShop.com.