in reply to Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file

masood91:

I'm still a web-noob at the moment, so I don't know for certain. But when looking at your code, I'm thinking you might find the problem if you ask yourself a couple questions:

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file

Replies are listed 'Best First'.
Re^2: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
by masood91 (Novice) on Nov 05, 2014 at 11:51 UTC
    I am using Wamp server, so the script is located in WWW folder. I am using localhost:8080/directory.pl to access my script in browser. As pointed in earlier comment my files are located in local machine, where in wamp folder should i put te files, so that they will be accessible to script?

      masood91:

      It could be anywhere ... that would depend on how the web server is configured. Check with the person who set up your WWW server to find out which of the directories on your machine are mapped to be accessible from the WWW server, and which URLs the directories would correspond to.

      ...roboticus

      When your only tool is a hammer, all problems look like your thumb.