摘要: php 使用异或(XOR)加密/解密文件原理:将文件每一个字节与key作位异或运算(XOR),解密则再执行一次异或运算。代码如下:source:';echo '';echo '';file_encrypt($source, $encrypt_file, $key); // encryptecho 'encrypt file:';echo '';echo '';file_encrypt($encrypt_file, $decrypt_file, $key); // decryptecho 'decry 阅读全文
posted @ 2013-11-02 01:17 傲雪星枫 阅读(639) 评论(0) 推荐(0) 编辑
摘要: 1.月份显示/** 月份顯示* @param int $m 1-12* @param int $type 0:long 1:short(default) 2:chinese* @return String*/function format_month($m, $type=0){ $month = array( array('', 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'A 阅读全文
posted @ 2013-11-02 00:32 傲雪星枫 阅读(221) 评论(0) 推荐(0) 编辑