摘要:
正确[php] 为表态 批准! 不准 Null 错误 为表态 ... 阅读全文
随笔档案-2012年10月
php 时间戳处理 自定义时间戳
2012-10-18 14:38 by freefei, 353 阅读, 收藏, 编辑
摘要:
[php]$xbtime=date($setting['xw_end_time'],time());// 下班时间的值$kaistime=strtotime($xbtime);//开始时间转换为时间戳[/php]date(自定义时间,当前时间) 返回当前日期的自定义时间的 时间戳 阅读全文
读邮件正文
2012-10-14 22:45 by freefei, 283 阅读, 收藏, 编辑
摘要:
[php]/** 读取邮件正文body*/public function bodys(){ vendor('PHPMailer.imap');//导入收邮件类 $path='Upload/mailfile/';// 附件保存地址 //set_time_limit(0); $emailBody=M('EmailMaillist');//读收邮件 $email_attach=M('EmailAtta... 阅读全文
收邮件
2012-10-14 22:42 by freefei, 283 阅读, 收藏, 编辑
摘要:
[php]/**收邮件方法2*/public function receives(){vendor('PHPMailer.imap');//导入收邮件类 $mailInfo=M("EmailInfo"); $maillist=M('EmailMaillist');//收邮件列表 //$data=$maillist->create(); //$where['uid']=$this->mid; $wh... 阅读全文
过滤js函数
2012-10-10 20:34 by freefei, 301 阅读, 收藏, 编辑
摘要:
[php]// 过滤非法字符函数function cleanJs($text){ $text = trim($text); $text = stripslashes($text); //完全过滤动态代码 $text = preg_replace('//','',$text); //完全过滤js $text = preg_replace('//','',$text); //过滤多余html $tex... 阅读全文
oa项目 发送提示消息接口
2012-10-09 20:22 by freefei, 324 阅读, 收藏, 编辑
摘要:
[php]// (提醒人的id,appNotify,标题,内容,发送信息的uid,0/1,应用key) 0弹出提醒 1 不弹出提醒model(Notify)->add("$this->mid",appNotify,标题,内容,发送信息的uid,是否不通知,应用key);[/php] 阅读全文
php获取文件后缀函数
2012-10-09 17:49 by freefei, 167 阅读, 收藏, 编辑
摘要:
返回后缀传入文件路径地址[php]function extend_1($file_name) //获取文件的后缀{$retval="";$pt=strrpos($file_name, ".");if ($pt) $retval=substr($file_name, $pt+1, strlen($file_name) - $pt);return ($retval);}[/php] 阅读全文
thinkphp 多表关联查询 设置多条件
2012-10-08 23:45 by freefei, 1079 阅读, 收藏, 编辑
摘要:
$this->_link = array( 'NavigationUrl'=>array( 'mapping_type'=>HAS_MANY, 'class_name' =>'NavigationUrl', 'foreign_key'=>'cateid', 'condition'=> "uid=$a", ... 阅读全文
thinkphp model中写函数
2012-10-08 21:56 by freefei, 248 阅读, 收藏, 编辑
摘要:
_link = array( 'NavigationUrl'=>array( 'mapping_type'=>HAS_MANY, 'class_name' =>'NavigationUrl', 'foreign_key'=>'cateid', 'condition'=> "uid=$a", ), );... 阅读全文
世界,你好!
2012-10-08 21:38 by freefei, 163 阅读, 收藏, 编辑
摘要:
欢迎使用 WordPress。这是系统自动生成的演示文章。编辑或者删除它,然后开始您的博客! 阅读全文
About
2012-10-08 21:38 by freefei, 86 阅读, 收藏, 编辑
摘要:
hi name is freefei!wellcome to my blog ,name is freefei(冉幕飞),so if you content with my please call me QQ:362134111 or sent mail admin@ff-gzs.cn, hi im a phper !!!... loveing:运用到的技术 php, mysql, htm... 阅读全文