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 11: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.