Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: href = file doesnt work within script

by duct_tape (Hermit)
on Dec 24, 2003 at 16:06 UTC ( #316875=note: print w/replies, xml ) Need Help??


in reply to href = file doesnt work within script

Just a guess, but I see that if the dir param is not defined then you are assigning it 'C:/projects/....'. Maybe you need to make the link include file:// since it looks like you are trying to download local files.

Or is this a web application that is going to be used remotely? If so then you shouldn't be using the full path like that. Perhaps you should check your web server's error_log to see if any errors are being produced by this such as 404 not found. Also view the source that is output to the browser and make sure that the links look correct.

Hope that helps

  • Comment on Re: href = file doesnt work within script

Replies are listed 'Best First'.
Re: Re: href = file doesnt work within script
by Anonymous Monk on Dec 24, 2003 at 16:13 UTC
    I am using templates so there is no need for Content-Type: text/html\n\n. Though I tried it anyway. I also added the file://, but again no success. Also, there are no errors in the log. I just dont understand why I cant get something so simple to work. Ahh! Thanks for trying

      Which Template?

      From HTML::Template

      # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output;

      "Pain is weakness leaving the body, I find myself in pain everyday" -me

      $template->param()
      Would lead me to believe that you are using HTML::Template. In which case, you DO need to print a content-type header to the browser.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2019-10-21 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?