Reply to Re: launching files locally

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация