PHP
钱真多
这个作者很懒,什么都没留下…
展开
-
php文件操作错误代码说明
UPLOAD_ERR_OK其值为 0,没有错误发生,文件上传成功。 UPLOAD_ERR_INI_SIZE其值为 1,上传的文件超过了 php.ini 中 upload_max_filesize 选项限制的值。 UPLOAD_ERR_FORM_SIZE其值为 2,上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值。转载 2015-03-18 11:36:29 · 528 阅读 · 0 评论 -
PHP笔记------关于Session操作
1.判断Session是否赋值if(!isset($_SESSION['username']) || $_SESSION['username']==''){$this->redirect('Login/login');}2.退出清除Session$_SESSION=array();if(isset($_COOKIE[session_name()])){setcook原创 2015-03-20 22:37:11 · 404 阅读 · 0 评论 -
ThinkPHP笔记------重定向
1 $this -> success('登录成功','../Admin/admin');原创 2015-03-20 22:14:27 · 397 阅读 · 0 评论 -
thinkPHP笔记-----前台跳转到后台执行函数
function search(){window.location.href='{:U('Search/index')}';//alert("搜索成功")//self.location=’U('Search/index')’; }原创 2015-03-21 23:14:22 · 2368 阅读 · 0 评论 -
PHP笔记--数据库操作
连接数据库$mysqli=new mysqli("localhost", "root", "123456", "card");执行SQL语句$result=$mysqli->query("select id, title from card where cid={$cid}");原创 2015-03-18 23:07:25 · 311 阅读 · 0 评论