require:出现警告时,停止脚本运行。
include:出错依然执行,会重复加载。
include_noce:会判断,如果有重复加载时,不会重复加载。
requir_noce:只加载一次,如果后面出错会停止加载。
在PHP标签中规定格式为utf-8:header('content-type:text/html;charset=utf-8');
http使用方法:get,post,delete,put,常用get和post两种方法。
get和post的区别:
get 请求的数据会附在URL之后(就是把数据放在http协议头中)以?分割URL和传输数据,参数之间以&相连。
post别get安全性高