Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Problem linking to wmv's (http://www.greenguysboard.com/board/showthread.php?t=25211)

metfan77 2005-10-20 03:08 PM

Problem linking to wmv's
 
I made my first movie gallery (yay?), but there seems to be a problem with either the links to the movies, or the movies themselves. When someone left clicks on them, instead of downloading the movie it opens a huge text document. The links aren't broken, since right-click/save target as will allow you to download them. Anyway to fix this?

http://www.porno-parade.com/galleries/bigcocksex/allie/

While you're there...any other tips? |cool|

Fking 2005-10-21 07:11 AM

it's problem on your computer only, i guess you have associated the wmv files with wordpad or something like that

here, it opens a download dialog box

Wazza 2005-10-21 08:36 AM

Here it plays in my windoze media player...

It scrolls widthways in 1024x - might want to look at addressing that...

Cleo 2005-10-21 08:46 AM

http://msdn.microsoft.com/workshop/n...appendix_a.asp

metfan77 2005-10-22 04:07 PM

It can't be only on my computer, since 2 other people told me that it happens to them as well.

Thanks to everyone for your responses.

Fking 2005-10-22 04:34 PM

well this means that they have wrong file associations too
you can't do much about that....


here it's ok

juggernaut 2005-10-23 07:39 AM

Heres a test for you. Take a simple text file, you dont have to place anything in it. Save it as a wmv file just like you would if you were saving a html page. Then double click it. If it opens in MS media player or some other media player then all is cool. granted it wont play anything and you most likly will get an error. But this is a quick and easy way to find out if MS Media player is associated to play those files. If it opens back up in notepad then its not. Also make sure you can see the full extention of the file. If you do not have that option set on your system. When you go to save it from notepad, you will really end up saving "filename.txt.wmv
One last thing, look in your event viewer, it sould tell you the problem or at least give you some error codes that you can then go and search google on or MS. Hope this helps..

Mr. Stiff 2005-10-24 12:34 PM

It's your webserver config. It doesn't send out the correct mime-type in the HTTP headers:

Connecting to www.porno-parade.com[207.234.209.65]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,212,341 text/plain

porncaster 2005-10-24 04:55 PM

mr stiff is right. try this::

find a file named mime.types in the directory /conf where is the directory the webserver is installed in. you are running redhat, so will probably be /usr/local/apache2/.

i believe in apache2, there is also a copy at /etc/mime.types and im not sure which one is used.

in any event, modify any mime.types files you find by adding these lines


# various Micro$oft extensions
video/x-ms-asf asf asx
video/x-ms-wm wm
video/x-ms-wmv wmv
video/x-ms-wmx wmx
video/x-ms-wvx wvx


restart apache, and it should work correctly. if it still doesnt work, apache is probably using yet another mime.types file. run 'find / | grep mime.types' and modify any mime.types files that are found.

oast 2005-10-28 08:35 PM

If you haven't got access to the .conf files, but you are able to edit the .htaccess file, then you can add the following line:

AddType video/x-ms-wmv wmv

metfan77 2005-10-30 02:48 AM

I don't think I can access the .conf files...and I'm not sure about .htaccess either :(

oast 2005-10-30 03:36 AM

If you are on shared hosting (Internet Turnpike?) then you most definately haven't got access to the .conf files.
Looking at their plans you might be able to edit (or create) .htaccess files.
You could contact support and ask them to update their server's .conf files to inlude .wmv (and the others) as they are standard file extensions.

porncaster 2005-10-31 12:52 PM

if you have ftp/sftp/scp access, you can create a text file named .htaccess on your computer, and upload it to the document root. apache looks for them at every request, so the changes should take effect immediatelly.

if you are using windows, you cant do the normal left click > new file > text file because it assumes .htaccess is not a valid name. instead, open notepad, paste AddType video/x-ms-wmv wmv and save as .htaccess.

if adding an .htaccess file doesnt work, that probably means that AllowOverride None is set in the servers httpd.conf file, and you would have to ask your host to change it to AllowOverride All , or just add the mime types for you.

MeatPounder 2005-11-01 10:00 AM

Make sure when you save the .htaccess file from notepad you choose save as and also select save as type > all files, for notepad saves as .txt by default.
You will end up saving a file .htaccess.txt instead of .htaccess if you don't.

oast 2005-11-01 11:28 AM

Yes, Windows is strange like that isn't it?
It won't let you create a file called .htaccess because You must type a filename, but you can save as a file called .htaccess.
Thanks for the help, Mr G |pcsucks|

metfan77 2005-11-01 04:26 PM

Awesome! I added the .htaccess and now the files open in windows media player for me.

You guys rock, thanks a lot |headbang|

Cleo 2005-11-01 04:56 PM

Macs will not let you name a file .anything since files that start with a dot are invisible. Well actually they will but you get warned that it will become invisible and if you hit ok it becomes invisible.

I just name mine htaccess and then add the dot after it is on the server.

oast 2005-11-01 05:23 PM

Cleo, I have never used a Mac, but on *nix and Win* you have the option of showing invisible/hidden files... is that not an option with Macs?

Cleo 2005-11-01 05:34 PM

Quote:

Originally Posted by oast
Cleo, I have never used a Mac, but on *nix and Win* you have the option of showing invisible/hidden files... is that not an option with Macs?

Macs are *nix.

You can turn invisibles on, it's global, but then the Finder (file browser) will be a mess of normally invisible files.

You can also use one of the many 3rd party file browsers that will show invisibles.

You could also open up a shell in terminal and use bash or whatever is your favorite CLI.

Just seems simpler to rename them on the server.


All times are GMT -4. The time now is 04:18 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc