Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Getting the link to work

by narainhere (Monk)
on Dec 26, 2007 at 17:34 UTC ( [id://659082]=note: print w/replies, xml ) Need Help??


in reply to Getting the link to work

Hey Armando I copied and executed you program..It's fine upto listing the contents of directory.But when you start downloading file instead of the actual-path
i.e"c:/files/err"
it's taking
http://server/servlet-name/cgi-bin/<file-to-download>
This can be resolved by coding the actual path in the script as
foreach my $file (@files) { print $list->p( $list->a({-href=>$fileDir."/".$file}, $file) ); }

The world is so big for any individual to conquer

Replies are listed 'Best First'.
Re^2: Getting the link to work
by ArmandoG (Sexton) on Dec 26, 2007 at 18:07 UTC
    Hi it work thank you but now a new thing, when I click the filename that has the link and it gives me this error message Firefox doesnt know how to open this address; because the protocol (c) isnt associated with any problem. can you help me ??

      The 1st step is configuring your apache to permit the download of the files you need, for example with the URL http:://localhost/files/err/35854785.err.

      Now that you can download, redirecting the file request with

      $list->a({-href=>"/files/err/".$file}, $file) );

      This is the simples way to resolve the problem, AFAICS.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://659082]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 19:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found