随笔分类 -  php

摘要:php 取时间范围所在的季度的开始和结束时间 阅读全文
posted @ 2014-07-11 18:58 欧麦噶地 阅读(601) 评论(0) 推荐(0)
摘要://设置PEM证书,pfx证书转pem方法:openssl pkcs12 -in 2000000501.pfx -out 2000000501.pem$cacert = ROOT_DIR."config/paykey/weixinss.pem";$ch = curl_init();curl_set... 阅读全文
posted @ 2014-07-02 19:58 欧麦噶地 阅读(514) 评论(0) 推荐(0)
摘要:过虑php代码中的空白和注释方法,适用于如框架中将配置文件或是框架核心文件加载到缓存文件中。即可将多个php文件代码整合到一个php文件中,并将代码中的空白和注释去掉。/**/* 去除代码中的空白和注释*params:$content为从php文件中读出的文本内容,即源代码,如用file_get_contents从config.php文件读出配置代码。*/function strip_whitespace($content) { $stripStr = ''; //分析php源码 $tokens = token_get_all ($content); $last_s... 阅读全文
posted @ 2013-09-03 11:16 欧麦噶地 阅读(124) 评论(0) 推荐(0)
摘要:ubuntu+nginx+php-cgi 环境开启php的curl功能 阅读全文
posted @ 2013-05-14 16:49 欧麦噶地 阅读(3495) 评论(0) 推荐(0)
摘要:ubuntu 设置php开机启动 阅读全文
posted @ 2013-05-14 10:16 欧麦噶地 阅读(878) 评论(0) 推荐(0)
摘要:<?php//验证码function ucode($length=4,$mode=1,$type='png',$width=48,$height=22) { $randval = rand(1000,9999); $_SESSION['IMGCODE']= $randval; $width = ($length*9+10)>$width?$length*9+10:$width; if ( $type!='gif' && function_exists('imagecreatetruecolor')) { 阅读全文
posted @ 2013-03-20 17:50 欧麦噶地 阅读(175) 评论(0) 推荐(0)
摘要:1 <?php 2 define ( "php_VERSION", "5.2.3" ); 3 function Pinyin($_String, $_Code = 'gb2312') { 4 $_DataKey = "a|ai|an|ang|ao|ba|bai|ban|bang|bao|bei|ben|beng|bi|bian|biao|bie|bin|bing|bo|bu|ca|cai|can|cang|cao|ce|ceng|cha" . "|chai|chan|chang|chao|che|che 阅读全文
posted @ 2013-03-20 17:38 欧麦噶地 阅读(1598) 评论(0) 推荐(0)
摘要:php ci框架使用qeephp框架的acl实现权限验证 阅读全文
posted @ 2013-03-20 16:30 欧麦噶地 阅读(1902) 评论(0) 推荐(0)
摘要:php 二维数组排序 阅读全文
posted @ 2013-03-13 11:01 欧麦噶地 阅读(228) 评论(0) 推荐(0)
摘要:php 判断文件是否可写 ci is_really_writable() 阅读全文
posted @ 2013-03-12 17:57 欧麦噶地 阅读(857) 评论(0) 推荐(0)
摘要:php syslog记录系统日志 阅读全文
posted @ 2013-03-11 15:20 欧麦噶地 阅读(6921) 评论(0) 推荐(0)
摘要:php 生成唯一id 阅读全文
posted @ 2013-03-08 14:43 欧麦噶地 阅读(824) 评论(0) 推荐(0)
摘要:php 使用pdo连接postgresql 阅读全文
posted @ 2013-01-16 14:57 欧麦噶地 阅读(1615) 评论(0) 推荐(0)
摘要:phpmailer发送修改密码邮件 阅读全文
posted @ 2013-01-08 11:27 欧麦噶地 阅读(259) 评论(0) 推荐(0)
摘要:php 学习整理 阅读全文
posted @ 2012-12-25 17:15 欧麦噶地 阅读(572) 评论(1) 推荐(1)
摘要:php xml-rpc 第三方工具使用 - The Incutio XML-RPC Library for PHP 阅读全文
posted @ 2012-12-10 14:58 欧麦噶地 阅读(458) 评论(0) 推荐(0)
摘要:php ci 高级视图 阅读全文
posted @ 2012-11-26 17:24 欧麦噶地 阅读(1744) 评论(0) 推荐(0)
摘要:php CI框架学习整理 阅读全文
posted @ 2012-11-22 16:29 欧麦噶地 阅读(142) 评论(0) 推荐(0)