看过的许多资料都没有说过htm和html文件有一些区别,所以从来没注意过后缀名的不同有不同的效果。前一阵子做网页,发现有一些标记属性不能在html文件中正确的执行,后来换成htm文件哪些效果就被实现了。上网查过以后才知道他们的区别:
HTML:
html was the original extension for HTML pages on Unix Web hosting machines.
HTM:
htm was created by Windows/DOS because of it's requirement for 3 character extensions.参考网址 :
http://webdesign.about.com/od/beginningtutorials/a/aa072700a.htmFilenames
HTML documents use the .htm or. html file extensions, e.g. index.htm or index.html can be used to name your opening page. It also a good idea to use lowercase lettering when naming files. In short, a link specifying a file called History.htm will not work if the file is named history.htm, and a link specifying a file called history.html will not work if the file is named history.htm.
Tips:
- HTML tags should be in Upper Case letters to help differentiate from ordinary text.
- All HTML files in your project should be named with either a .htm or .htmlextension. Do not use both extension types in the same project.
- All HTML file names should be in lower case, with letters and numbers only. Do not use spaces or odd characters (%$£&*).
- Backup your Web Site regularly. If you have WinZip or another compression program, you can achieve this by right-clicking on the folder and choosing "Add to Zip". A few seconds later you have a disaster-management and contingency program.
Note: While there are many excellent HTML editors available, it is useful to know enough HTML to code a document before you begin such an editor. The web pages created by such editors may require some "tweaking" of the HTML code in order to work as you would like them to, and it is much easier to do this if you have a grounding in HTML basics.
参考网址 :http://www.ncte.ie/wpc/start_html.htm
这一阵子竟瞎忙,忙了半天还是要用钱解决,俩字"徒劳"。唉!此时方才感到“人生不如意,十之八九”。得了别说没用的,还是说正题:
Warning: Cannot modify header information - headers already sent by (output started at d:\easyphp1-8\www\vote\hostreg.php:6) in d:\easyphp1-8\www\vote\hostreg.php on line 25 这个警告在我移植到学校的机器上才出现的,可是找了半天信息,大都是用Java Script来解决(但是以前我用的都是改写php.ini 呵呵,这个比较简洁方便,最近比较忙也烦,所以没空仔细看那些Script)后来被我找到了我想要的东西就是打开php.ini一开始找到的output_buffering都是设置的buffering的大小,没看到由output_buffering=off的项,没关系,我自己填写了output_buffering=on ( 为了安全,这个选项应该是关的) 然后还要把output_buffering = 0 删掉.OK! Sans Marche
(注意,本文编译环境是在EasyPHP1.8版本下,1.8以下的版本这个选项默认是开启的)
(待续)