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

There is no default. You should always give an absolute path.

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

Replies are listed 'Best First'.
Re^6: Perl cgi script for directory listing and file downloading!! Problem: Unable to download the file
by masood91 (Novice) on Nov 05, 2014 at 12:56 UTC
    Ok, I have successfuly opened a file in browser directly using this URL: http://localhost:8080/Documents/dbschema.pdf now in script, should i use this? opendir(DIR,'http://localhost:8080/Documents/')

    ?

      You still need to learn about the difference between access via HTTP and local access. HTTP uses http:// URLs. Local access uses file paths like C:\www\Documents\. readdir does local access. The web browser does HTTP access.