473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

launching files locally

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??

Thanks -

Brian Mccabe

Apr 26 '06 #1
4 1043
br**********@gmail.com wrote in
<11**********************@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

Apr 26 '06 #2
Michael B. Trausch wrote:
br**********@gmail.com wrote in
<11**********************@j33g2000cwa.googlegroups .com> on Tue April 25
2006 23:01:
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.


This is definitely a browser configuration issue.


No....Brian's just confused about the relationship between client and
server. Since they are both running on the same box, its a lot neater to
run the target from the server rather than copy it to the client and play
it there. RTFM for program execution functions. You should see the online
copy and notes elsewhere on long running processes (since it's MS-Windows
you should prefix the command line of the player app with 'start').

HTH

C.

Apr 26 '06 #3
Ok, looks like I am getting somewhere here. Thanks a lot for the help!

Please tell me RTFM means. I have no idea.

FYI, the files I am attempting to launch are quite large. Some of them
are upwards of a gigabyte or more. I don't know if this plays into it
or not.

I will try to determine what RTFM means and go from there, and post
other questions in this thread.

Thanks alot for the help!!

Brian Mc

Apr 26 '06 #4
Well....didn't take long to figure out what RTFM means.

Touche. Thanks for the suggestion!

Apr 26 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Drew Lettington | last post by:
I want to launch an installation (setup.exe) from a Web Server using via a URL. I currently accomplish this by passing the URL to IE: System.Diagnostics.Process ieProcess = new...
2
by: Raterus | last post by:
Hi, I'm after this setup, and I'm just wondering if this is even feasible. I'd like to store my asp.net project remotely, on a network drive (all the project files, everything), But I want to be...
1
by: Ryan Malone | last post by:
I have a situation where I need to download multiple files in a vb.net application. To speed up the process, I am trying to download multiple files at one time looping through each of the files...
24
by: Alan M Dunsmuir | last post by:
What is the command (in Windows Forms VB.NET) which will cause the subject computer's default browser to launch, and display a specified Web page? -- Alan M Dunsmuir
2
by: SpamUsHereInstead | last post by:
Hi, I have Googled the internet beyond belief for a solution to this and keep running into obstacles: I have written an ASP application using our IIS server which retrieves data and displays...
9
by: sesling | last post by:
We have several batch programs that users need to run each day to move data around our system. The batch files require the user to enter criteria when launching the program. To help simplify this I...
1
by: =?Utf-8?B?Y2pzb2Z0dWs=?= | last post by:
I'm trying to write a program which opens data from a remote target, saves a temp copy locally, allows the user to edit, then upload back to source. I use Diagnostics.Process.Start to create my...
5
by: Ed Jay | last post by:
I'm having difficulty launching a page in IE with URL#name. No issue with FF or Opera On Page 1, I have the link <a href="URL#here>Go here</a>. On Page 2, I have <a name="here"></a>. Both...
3
by: Robert Dunlop | last post by:
I am using Microsoft Visual Studio 2005 for development of an ASP.NET site, and I have a problem that greatly effects my workflow at times. It seems that after I upload new files anywhere within...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.