
html
文章平均质量分 64
X梦阳X
本人现学习php开发
展开
-
curl模拟post请求提交
[php] view plain copy header('content-type:text/html;charset=utf-8'); function curlPost($url,$data,$method){ $ch = curl_init(); //1.初始化 curl_setopt($ch, CURLOPT_URL,原创 2016-09-07 19:13:44 · 436 阅读 · 0 评论 -
html5解决大文件断点续传
js代码[html] view plain copy > html> head> meta charset="UTF-8"/> title>xhr2title> head> body> div id="drop_area" style=原创 2016-09-07 19:12:38 · 833 阅读 · 0 评论 -
laravel5.2 分页
控制器public function Lists(){ //查询数据 $posts = DB::table('news')->paginate(3); return view('index/list',['posts' => $posts]);}视图center> table border="1"> tr>原创 2016-09-06 11:17:07 · 1285 阅读 · 0 评论 -
laravel5.2 文件上传
视图层form method="post" action="{{URL('file')}}" enctype="multipart/form-data"> h1>添加新闻h1> table border="1"> tr> th>新闻名称:th> th>input type="text" name="n_name">原创 2016-09-06 11:21:19 · 2245 阅读 · 0 评论 -
登录
//实现登录功能 public function Sign(){ //开启SESSION session_start(); //接受 所有的值 $date = input::get(); //查询数据 $user_name = DB::table('admin_user')->wh原创 2016-09-06 14:00:10 · 422 阅读 · 0 评论