![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
你好八月
这个作者很懒,什么都没留下…
展开
-
session_start
session_start()函数的作用是,生成相应的session文件,比如,当你发送一个请求时,服务器如果调用了session_start()函数,服务器会生成对应你的一个session文件,来存储你的身份信息。原创 2015-10-11 22:55:44 · 2159 阅读 · 0 评论 -
php正则表达式的基本语法
正则表达式的基本语法首先,让我们看看两个特别的字符:’^’ 和 ‘$’ 他们是分别用来匹配字符串的开始和结束,一下分别举例说明"^The": 匹配以 "The"开头的字符串; "of despair$": 匹配以 "of despair" 结尾的字符串; "^abc$": 匹配以abc开头和以abc结尾的字符串,实际上是只有abc与之匹配 "notice": 匹配包转载 2015-04-09 15:22:15 · 728 阅读 · 0 评论 -
php文件上传
error_reporting(-1);header("Content-type: text/html; charset=utf-8");$dangers = "php,php3,php4,phtml,php5,jsp,py,rb,asp,aspx,ashx,asa,cer,cdx,aspl,shtm,shtml,html,htm";//$ext='php ';$filen原创 2016-06-22 17:52:03 · 913 阅读 · 0 评论