Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

      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?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2020-09-25 01:05 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (136 votes). Check out past polls.