![]() |
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| |
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 |
Here it plays in my windoze media player...
It scrolls widthways in 1024x - might want to look at addressing that... |
|
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. |
well this means that they have wrong file associations too
you can't do much about that.... here it's ok |
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.. |
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 |
mr stiff is right. try this::
find a file named mime.types in the directory 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. |
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 |
I don't think I can access the .conf files...and I'm not sure about .htaccess either :(
|
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. |
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. |
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. |
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| |
Awesome! I added the .htaccess and now the files open in windows media player for me.
You guys rock, thanks a lot |headbang| |
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. |
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?
|
Quote:
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