Web Hosting Talk







View Full Version : .htc files?


allera
08-19-2001, 12:34 PM
Has anyone heard of .htc file extensions? A buddy of mine is working with .htc files and he says he can't get them to work on my server. I can't find any information on .htc anywhere. He says it's just a text file with code in it, similar to .js files. He can't figure out how to use them either. He found out about them on dhtmlcentral.com.

Any ideas?

davidb
08-19-2001, 01:09 PM
Well, this is just a guess, but Im guessing from what you say, that on the webserver its not enabled to "read" the file as java script, which im guessing what it is from what you wrote. Basicly like a cgi file, the webserver needs to know what to do with it. For example if you did not set .pl to be excepted as a cgi script then it would just show text. I hope this helped.

allera
08-19-2001, 01:14 PM
I tried that as well and it didn't work. I tried to display it as text by making apache think it was a txt file and that won't display anything either. Maybe my brain just isn't on today. :)

davidb
08-19-2001, 01:39 PM
I recomend searching around mailling lists. I love those things when I have a problem. More or less someone else has run into the same problem.

remarkable
08-19-2001, 05:13 PM
are you using windows? I seem to remember about 2 years ago that this file extention is now disabled by default due to a vulnerability. You may have to add this extention to the file type list in your mail IIS configuration.

allera
08-19-2001, 05:17 PM
Na, this is for a Unix environment. Is .htc for IIS only?

remarkable
08-19-2001, 05:30 PM
Originally posted by allera
Na, this is for a Unix environment. Is .htc for IIS only?

In that case you need to set the application type in /etc/mime.type and enable it in the apache configuraton. You are using Apache?

The Prohacker
08-19-2001, 08:30 PM
In my use of .htc files, I've only seen them hold javascript code, and usually when they are used, the script only works in IE, its something MS started, I've still got a few projects that use them...

The Prohacker
08-19-2001, 08:40 PM
http://www.prohacker.f2s.com/edit.htm

This for example uses a .htc file for all the code...

And by the way, this only works in IE 5.01 above, figures, it was made by MS :D