Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-10-20, 03:08 PM   #1
metfan77
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 4
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|
metfan77 is offline   Reply With Quote
Old 2005-10-21, 07:11 AM   #2
Fking
Shut up brain, or I'll stab you with a Q-tip!
 
Fking's Avatar
 
Join Date: Dec 2003
Posts: 116
Send a message via ICQ to Fking
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
Fking is offline   Reply With Quote
Old 2005-10-21, 08:36 AM   #3
Wazza
I'm a jaded evil bastard, I wouldn't piss on myself if I was on fire...
 
Join Date: Apr 2003
Location: Melbourne, Australia
Posts: 808
Send a message via ICQ to Wazza
Here it plays in my windoze media player...

It scrolls widthways in 1024x - might want to look at addressing that...
__________________
I sale Internet

My sites have no traffic and no PR - let's trade - PM me
Wazza is offline   Reply With Quote
Old 2005-10-21, 08:46 AM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
http://msdn.microsoft.com/workshop/n...appendix_a.asp
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-10-22, 04:07 PM   #5
metfan77
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 4
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.
metfan77 is offline   Reply With Quote
Old 2005-10-22, 04:34 PM   #6
Fking
Shut up brain, or I'll stab you with a Q-tip!
 
Fking's Avatar
 
Join Date: Dec 2003
Posts: 116
Send a message via ICQ to Fking
well this means that they have wrong file associations too
you can't do much about that....


here it's ok
Fking is offline   Reply With Quote
Old 2005-10-23, 07:39 AM   #7
juggernaut
Registered User
 
juggernaut's Avatar
 
Join Date: Apr 2005
Location: Central Jersey! If I was rich and powerful I would dress as my avatar does.
Posts: 1,448
Send a message via Yahoo to juggernaut
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..
juggernaut is offline   Reply With Quote
Old 2005-10-24, 12:34 PM   #8
Mr. Stiff
Trying is the first step towards failure
 
Mr. Stiff's Avatar
 
Join Date: Sep 2005
Location: The Netherlands
Posts: 120
Send a message via ICQ to Mr. Stiff
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 offline   Reply With Quote
Old 2005-10-24, 04:55 PM   #9
porncaster
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 2
mr stiff is right. try this::

find a file named mime.types in the directory <apache>/conf where <apache> is the directory the webserver is installed in. you are running redhat, so <apache> 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.
porncaster is offline   Reply With Quote
Old 2005-10-28, 08:35 PM   #10
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-10-30, 02:48 AM   #11
metfan77
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 4
I don't think I can access the .conf files...and I'm not sure about .htaccess either
metfan77 is offline   Reply With Quote
Old 2005-10-30, 03:36 AM   #12
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-10-31, 12:52 PM   #13
porncaster
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 2
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.
porncaster is offline   Reply With Quote
Old 2005-11-01, 10:00 AM   #14
MeatPounder
Women might be able to fake orgasms But men can fake whole relationships
 
MeatPounder's Avatar
 
Join Date: Oct 2003
Location: Fort Lauderdale, Fl
Posts: 2,408
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.
MeatPounder is offline   Reply With Quote
Old 2005-11-01, 11:28 AM   #15
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-11-01, 04:26 PM   #16
metfan77
Internet! Is that thing still around?
 
Join Date: Oct 2005
Posts: 4
Awesome! I added the .htaccess and now the files open in windows media player for me.

You guys rock, thanks a lot
metfan77 is offline   Reply With Quote
Old 2005-11-01, 04:56 PM   #17
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-11-01, 05:23 PM   #18
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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?
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare.
oast is offline   Reply With Quote
Old 2005-11-01, 05:34 PM   #19
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
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.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17 AM.


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