|
Using Puppy Linux 4.3.1, I created some HTML files then uploaded to a web host. I go to the site (still using Puppy Linux) and the HTML pages show with no problems. Then I go to Windows, start a browser (I tried both in Mozilla FF and Opera) and open the same pages and lo and behold, the browser reports server timeout errors (i.e. server is not responding, etc.). So I go back to my Puppy Linux box, clear the cache of the browser (I'm using Seamonkey 2.0), reload the page and viola, it appears! What I do next, I delete all the files from the web host, create the HTML files using Windows, re-upload, then it's ok -- it now shows in Windows! Then back to my Linux box, open the page, it also shows properly. So, is there a difference when creating HTML files in Linux and Windows? |
How did you create the HTML files in Linux and in Windows? Did you do it programatically or did you use a text editor or an IDE?
If you did it programatically, it would help if you can show us the relevant code snippet.
Well, I don't have the exact code anymore but it was basically f = open('text_file.txt', 'r') then d = f.readlines() then fout = open('html_file.html', 'w') then for item in d fout.write(item). In between those there is the fout.write() of HTML tags i.e. <html>, <head>, etc. I also put a 'n' after every line for HTML source readability. Then fout.close() at the end. Could it be that the 'n' is causing the problem?