会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
屌丝IT男
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
8
9
10
11
12
13
14
下一页
2016年1月6日
curl的简单使用
摘要: 'tanteng' // 'password' => 'password' ); $ch = curl_init (); // print_r($ch); curl_setopt ( $ch, CURLOPT...
阅读全文
posted @ 2016-01-06 22:49 屌丝IT男
阅读(198)
评论(0)
推荐(0)
2016年1月3日
thinkphp自动验证方法的使用
摘要: 建一个表单: Document 用户名: 密码: 性...
阅读全文
posted @ 2016-01-03 18:00 屌丝IT男
阅读(247)
评论(0)
推荐(0)
Forbidden You don't have permission to access / on this server. You don't have permission to access /phpmyadmin/ on this server. 解决办法
摘要: Forbidden You don't have permission to access / on this server. 解决办法打开 httpd.conf 文件,将# onlineoffline tag- don't removeOrder Deny,AllowDeny from allA...
阅读全文
posted @ 2016-01-03 15:22 屌丝IT男
阅读(495)
评论(0)
推荐(0)
2015年12月27日
创建、删除文件夹和文件夹里的文件
摘要: 创建一个文件夹:public function index(){ if (!is_dir('d:/hl')) { mkdir('d:/hl'); }else{ echo '文件夹已经存在'; } }创建层级文...
阅读全文
posted @ 2015-12-27 01:11 屌丝IT男
阅读(253)
评论(0)
推荐(0)
图片的copy,从一个目录复制到另一个目录
摘要: 代码:public function index(){ $path='G:/相片/2014.9.8深圳莲花山/IMG_1282.JPG'; $path=iconv('utf-8','gb2312',$path);//转码,使汉子路径能解析 copy($pat...
阅读全文
posted @ 2015-12-27 00:44 屌丝IT男
阅读(647)
评论(0)
推荐(0)
如何把内容写入到文件
摘要: 第一种方法:public function index(){ $path='./Public/test.txt'; $fp=fopen($path,'a+'); fwrite($fp,"\r\n你好"); fclose($fp); }第二...
阅读全文
posted @ 2015-12-27 00:32 屌丝IT男
阅读(358)
评论(0)
推荐(0)
2015年12月26日
读取文件操作
摘要: 第一种方法:public function index(){ if($file=fopen('./Public/test.txt','a+')){ $file_info=fread($file,filesize('./Public/test.txt')); ...
阅读全文
posted @ 2015-12-26 22:46 屌丝IT男
阅读(163)
评论(0)
推荐(0)
文件打开操作
摘要: 文件打开操作可以取到文件大小,创建、修改、访问等信息,代码如下:public function index(){ if($file=fopen('./Public/test.txt','r')){ $file_info=fstat($file); ...
阅读全文
posted @ 2015-12-26 20:36 屌丝IT男
阅读(275)
评论(0)
推荐(0)
thinkphp中ajaxReturn方法实现ajax效果
摘要: 前台代码: Document php代码:public function getAjax(){ $data=array( 'data'=>'这是我要的数据', 'info'=>'信息...
阅读全文
posted @ 2015-12-26 17:42 屌丝IT男
阅读(263)
评论(0)
推荐(0)
JS 对象(Object)和字符串(String)互转
摘要: 利用原生JSON对象,将对象转为字符串var jsObj = {};jsObj.testArray = [1,2,3,4,5];jsObj.name = 'CSS3';jsObj.date = '8 May, 2011';var str = JSON.stringify(jsObj);alert(s...
阅读全文
posted @ 2015-12-26 16:31 屌丝IT男
阅读(285)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
下一页
公告