|
Posted by Michael B. Trausch on 04/26/06 06:36
briansmccabe@gmail.com wrote in
<1146020485.225357.285620@j33g2000cwa.googlegroups.com> on Tue April 25
2006 23:01:
> Hello -
>
> I have PHP and Apache installed on a windows box that is attached to
> my home theater. I wrote some code that indexes the contents of a
> directory that has some video clips etc in it, and the outputted HMTL
> is nothing more than a series of hyperlinks to these files, with some
> CSS to liven it up a bit.
>
> The problem is this: when I click on one of the links, rather than
> launch the file, it attempts to "download" it (even though the file
> resides right there on the machine anyway). In my hyperlinks, I
> specified to use the "file:" protocol instead of HTTP. I really just
> want it to launch the file.
>
> Any suggestions??
>
This is definitely a browser configuration issue. Even with file:// URLs,
the browser acts as a browser, not a file manager, where it will either
save the file somewhere or attempt to open it if that is what you instruct
it to do. Some things won't work with certain browsers, either. For
example, under Firefox, you have to save a .exe file, and open it with
Windows Explorer, for security reasons (this is to prevent you from
unwittingly opening an EXE file and planting a virus on your system).
- Mike
Navigation:
[Reply to this message]
|