Crdown's学习笔记

ASP.NET,Report...

博客园 首页 新随笔 联系 订阅 管理

随笔分类 -  PHP

摘要:php中有一个扩展可以支持DES的加密算法,是:extension=php_mcrypt.dll在配置文件中将这个扩展打开还不能够在windows环境下使用需要将PHP文件夹下的 libmcrypt.dll 拷贝到系统的 system32 目录下,这是通过phpinfo可以查看到mcrypt表示这个模块可以正常试用了。下面是PHP中使用DES加密解密的一个例子://$input - stuff to decrypt //$key - the secret key to use function do_mencrypt($input, $key) { $input... 阅读全文
posted @ 2012-05-31 16:15 Crdown 阅读(365) 评论(0) 推荐(0)

摘要:下载phpexcel文件,地址:phpexcel.codeplex.com/代码示例require_once 'phpexcel/Classes/PHPExcel.php';require_once 'phpexcel/Classes/PHPExcel/IOFactory.php';require_once 'phpexcel/Classes/PHPExcel/Reader/Excel5.php';$objReader = PHPExcel_IOFactory::createReader('Excel5');//use excel 阅读全文
posted @ 2012-05-25 16:35 Crdown 阅读(7429) 评论(0) 推荐(0)

摘要:<input type = "submit " name = "modify " value = "修改 "><input type = "submit " name = "delete " value = "删除 ">这是接收的页面:if(isset($modify)){echo "修改 ";}if(isset($delete)){echo "删除 ";}这是最简单,也是最好的方式整个交互过程只依赖对submi 阅读全文
posted @ 2012-05-24 08:57 Crdown 阅读(4203) 评论(0) 推荐(0)

摘要:由于zend又出新版的studio,为了感受一下所说的快速,安装了zend studio 9 特意感受一把。一直以来,都不觉得zend studio比dreamweaver好用。可能是先入为主的观念,我把zend studio8的代码着色风格全改成了DW风格,哈哈。现在装了zs9,从头修理一下,稍作修改,特以记录。一、修改字体 没想到zend studio 9中对中文显示不太好看,似乎有点小了。修改如下:打开Window->Preferences->General->Appearance->Colors and Fonts,找到Basic->Text Font,如 阅读全文
posted @ 2012-05-20 10:19 Crdown 阅读(307) 评论(0) 推荐(0)

摘要:二级联动下拉列表(select),都是从数据库中取值,其中第二级为可多选列表(multiple).若要实现二级也是下拉菜单,可以将multiple改了即可。<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>全动态二级联动下拉列表</title></head><body><?/*********************************** 阅读全文
posted @ 2012-05-18 14:11 Crdown 阅读(9245) 评论(4) 推荐(1)