共26页: 首页 上一页 16 17 18 19 20 21 22 23 24 下一页 末页 
摘要: Let say the type of column of "created" is datetime, [代码]阅读全文
posted @ 2010-05-14 15:47 DavidHHuan 阅读(337) 评论(0) 编辑
摘要: Assuming that image.jpg exists and is readable by PHP, how will the following script bedisplayed if called directly from a browser?[代码]There are four answers: A. As a JPEG imageB. As a binary file for...阅读全文
posted @ 2010-05-14 15:30 DavidHHuan 阅读(188) 评论(0) 编辑
摘要: What will the following script output?[代码]"Testing 345"?No, we can get the reason from the book of Zend PHP Certification Test Book".This question tests your knowledge of string manipulation and opera...阅读全文
posted @ 2010-05-14 11:15 DavidHHuan 阅读(159) 评论(0) 编辑
摘要: 假设文档名为 myfile.iso进入文档所在目录,然后输入如下代码:[代码]过一段时间后,就会在该目录生成 myfile 文件,里面包含了 myfile.iso 的MD5码阅读全文
posted @ 2010-05-13 15:48 DavidHHuan 阅读(248) 评论(0) 编辑
摘要: 代码The result: red阅读全文
posted @ 2010-05-12 16:57 DavidHHuan 阅读(106) 评论(0) 编辑
摘要: 假设lampp下载后解压到 /opt/lampp在terminal里面输入下面命令:[代码]阅读全文
posted @ 2010-05-05 17:04 DavidHHuan 阅读(123) 评论(0) 编辑
摘要: The sequence function allows for creating a sequence which is iteratedover and wrapped around when the end is reached. This is particularlyuseful when you want to alternate colors in a list. It's poss...阅读全文
posted @ 2010-05-05 13:57 DavidHHuan 阅读(148) 评论(0) 编辑
摘要: When going through the manual, we can know that, fetch_alias() can be thought of as a configuration-file based version of the fetch() operator.But the fetch_alias() must be defined in configuration ov...阅读全文
posted @ 2010-05-05 11:22 DavidHHuan 阅读(181) 评论(0) 编辑
摘要: mark down:vim的重做(redo)的快捷键提示是 ^R 的按法是 ctrl + r阅读全文
posted @ 2010-05-04 17:29 DavidHHuan 阅读(681) 评论(0) 编辑
摘要: There are two methods to do that: 1. ezhttp("myvariable", "get", TRUE);2. ezhttp_hasvariable("myvariable", "get");The second method is recommand to use.~阅读全文
posted @ 2010-05-04 12:02 DavidHHuan 阅读(160) 评论(0) 编辑
摘要: 下面语句就可以获取当前控制器的名称了!Yii::app()->controller->id阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(549) 评论(0) 编辑
摘要: <?php$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id'=>'myJuiDialog','options'=>array('title'=>'Edit the user profile','autoOpen'=>false,'buttons'=>array('ok'=>"js:f...阅读全文
posted @ 2010-04-21 11:56 DavidHHuan 阅读(497) 评论(0) 编辑
摘要: 第一,比如说,我们要使用 Zend framework的东西。我们把zend framework解压到 prtected/vendors里面,现在的文件夹为 protected/vendors/Zend/Search/Lucene.php第二,在controller文件的头部,插入下面代码。Yii::import(’application.vendors.*’);requi...阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(681) 评论(0) 编辑
摘要: 要创建一个新的挂件(widget),我们主要是要继承两个方法:CWidget::init()和 CWidget::run(),CWidget::init 调用是发生在我们使用 $this->beginWidget 将挂件插入到一个view里面,CWidget::run 调用是发生在我们使用 $this->endWidget 这个方法的时候。 如果我们想捕捉和处理两者之间的方法核查办上显...阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(329) 评论(0) 编辑
摘要: 比如要使用mySQL中的md5函数,Test::model()->findAll(new CDbExpression("md5(name) =1"));阅读全文
posted @ 2010-04-21 11:55 DavidHHuan 阅读(294) 评论(0) 编辑
共26页: 首页 上一页 16 17 18 19 20 21 22 23 24 下一页 末页