Forloyn Posted August 14, 2004 Posted August 14, 2004 I wonder why it's not displaying the html code in my .txt file as raw code... http://hfs.cjb.net/jessy/winter/sponsers.txt it is literly treating that text doc like a .html file, how bizar. just felt like sharing.
Guest jamieanderson Posted August 14, 2004 Posted August 14, 2004 Having connected to the link and looked at the source code, I couldn't find a txt file at all. Jamie.
Forloyn Posted August 15, 2004 Author Posted August 15, 2004 the link goes to a text file... that thinks it's a html file.
Guest jamieanderson Posted August 15, 2004 Posted August 15, 2004 By definition a html file is a straight ascii text file. True it should have starter and ender tags, <HTML> and </HTML>but most browsers are rather forgiving about that. However this link leads to a file which contains two html commands <a href="http://neo.kafuka.org/gaiasim/"> <img src="http://neo.kafuka.org/gaiasim/button.gif" border="0"> And nothing else. Jamie.
Forloyn Posted August 17, 2004 Author Posted August 17, 2004 by defalt the webserver should serve the file as text as it's exstention is .txt however the webserver is serving the file as HTML, and I have ferther tested it by placing both text and html comand lines in a .txt file and again it loaded as a .html file. In nother words it is treating .txt files as .html files when loading the above text file you should see in your brouser, NOT the actule image but the raw html. I was going to write a how to for webpage creation but seeing how I can't do it in .txt I guess I will have to find another means of doing it. worry not I have my ideas.
Navigator Posted August 18, 2004 Posted August 18, 2004 If the SysAdmin set .txt as an extension that the webserver is supposed to parse as HTML, you'll get that. Why the SysAdmin has it set that way I'll never guess.
Guest jamieanderson Posted August 18, 2004 Posted August 18, 2004 Ah, now I see your problem. Well there is a fairly simple solution. Replace the < and the > with ampersand hash 60 semicolon and ampersand hash 62 semicolon Then you can save it as an HTML file and it should work. See the example on http://www.xs4all.nl/~mts/jamie/a.html Jamie.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now