上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页
摘要: 众所周知,在window下面打包的zip在linux下面是不能直接解压的,因为zip在linux下面是按照系统默认的字符集来解压的。不过也无碍,其实zip本来是可以指定解压的字符集的。如使用下面命令unzip-OGBKmycpmpressfile.zip(用CP936,GB18030也可以) 阅读全文
posted @ 2011-09-16 17:55 DavidHHuan 阅读(468) 评论(0) 推荐(0)
摘要: let say we have a scene that after registered, we show a message to the web user, and then redirect the page to home page.usually, we use js to set as following:<scripttype="text/javascript">setTimeout('redirectPage',3);functionredirectPage(){window.location.href=''ht 阅读全文
posted @ 2011-09-14 20:58 DavidHHuan 阅读(432) 评论(0) 推荐(0)
摘要: 我的PHP环境是由apache+php+mysql+phpmyadmin搭建起来的,详情请参考我的另一篇文章:[Ubuntu] 转载:Ubuntu下安装apache+php+mysql+phpmyadmin但由于我是使用win7+ubuntu的,虽然基本上开发都在ubuntu下面,但有时也需要在win7下面运行一下网站的,所以我就要把mysql转移到ntfs上面去,但其中遇到了比较麻烦的问题,就是ntfs挂载在ubuntu下面的文件权限都是777的,具体操作过程遇到的问题和解决如下:1. 修改 /etc/mysql/my.cnf将datadir=/var/lib/mysql改为datadir= 阅读全文
posted @ 2011-09-12 23:42 DavidHHuan 阅读(520) 评论(0) 推荐(0)
摘要: 原文地址:http://blog.haohtml.com/archives/4522通过这篇文章,让我这个菜鸟成功的安装好了webserver需要的各种软件,特此转载下。在windows xp系统中可以傻瓜化安装amp,即安装wamp server这个把apache、php、mysql、phpmyadmin集成在一起的套装即可,而且在选择apache模块时还特别方便,真是可以不 用动脑了。由于ubuntu现在的操作也基本傻瓜化了,安装lamp也同样方便,但由于其linux血统,有的地方还需要注意一下。以下简单说明步骤:1、安装apahce2。sudo apt-get install apach 阅读全文
posted @ 2011-09-12 19:38 DavidHHuan 阅读(474) 评论(0) 推荐(0)
摘要: 这是我觉得写得比较好的文章,原文地址是:http://blog.csdn.net/pureshf/article/details/3942189ubuntu apache2配置1.apache2.conf 是主配置文件,httpd.conf 用户配置文件2.虚拟目录在 httpd.conf 中<VirtualHost *>DocumentRoot "路径"ServerName 名称<Directory "路径"> allow from all Options +Indexes </Directory></Virt 阅读全文
posted @ 2011-09-06 16:28 DavidHHuan 阅读(330) 评论(0) 推荐(0)
摘要: 笑死我了 ~~~^_^~~~很汗 -_-!狂汗 -_-|||困 =_=恼火 -_-#钱 $_$什么 ?_?呜哇(抽泣) T^T晕 +_+鄙视 (#‵′)凸鄙视你! ╭∩╮(︶︿︶)╭∩╮汗 ⊙﹏⊙b不要啊 o(>﹏<)o哈哈~ O(∩_∩)O嘻嘻 (*^__^*)好啊 (*^◎^*)好棒 o(≧v≦)o~~好冷 {{{(>_<)}}}哼 ╭(╯^╰)╮加油 ↖(^ω^)↗囧 o(╯□╰)o羞 ~(@^_^@)~狂晕 (+﹏+)~泪奔 ~~o(>_<)o ~~我哭 /(ㄒoㄒ)/~~欧也 \(^o^)/唉(心情不好) o(︶︿︶)o晕死了 (@﹏@)~万岁 ~ 阅读全文
posted @ 2011-08-20 15:22 DavidHHuan 阅读(763) 评论(0) 推荐(1)
摘要: magento version: 1.5.1OS: CentOS 5.2Server: Apache 2.XMySQL: 5.XAfter i uploaded the code and installed magento, it seems that it is running well. But when i visit http://www.mywebsite.com/index.php/admin/catalog_product/index/key/cbe2b4d77f0b3b97de24c4a43443458e/ , i get this error:Couldnotdetermin 阅读全文
posted @ 2011-08-15 12:45 DavidHHuan 阅读(974) 评论(0) 推荐(0)
摘要: 首先是,我已经在页面已经设置了<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>我本地运行的时候,不需要在浏览器里面设置字符集,也是可以正常看到字符内容的。但我用ftp上传到服务器之后,就出现了乱码,只有手动去设置浏览器显示的字符集为utf-8才能正常显示。通过这样修改就可以解决了。在页面的头部:<?phpheader('Content-type:text/html;charset=utf-8');?>我也怀疑是不是FTP没有强制上传的 阅读全文
posted @ 2011-05-21 11:03 DavidHHuan 阅读(1375) 评论(0) 推荐(0)
摘要: 平时我们做开发的时候pasting,经常需要调试。比如说在PHP里面,想输出一个object,只需要<?phpecho'<pre>';print_r($object);echo'</pre>';?>在javascript,我们一般都是用 alert(object) 来做调试的,但是这样是调试不到object的,比如,varobject={'test_1','test_2','test_3'}如果用alert(object);得到的结果是 object object还有,借助goo 阅读全文
posted @ 2011-05-20 02:29 DavidHHuan 阅读(726) 评论(2) 推荐(0)
摘要: When we using CGridView in Yii, we may want to a link as a column. So in common sense, we will use CLinkColumn to do that, as these code:<?php$this->widget('zii.widgets.grid.CGridView',array('dataProvider'=>$dataProvider,'columns'=>array(array('name'=>& 阅读全文
posted @ 2011-05-19 11:14 DavidHHuan 阅读(1415) 评论(0) 推荐(0)
摘要: As we know, Drupal7 has changed a lot, and we have to be familiar with it.Here is an example to theme a table with pager.$output='';$header=array(array('data'=>t('Title'),'field'=>'n.title',),array('data'=>'',),);$query=db_select(' 阅读全文
posted @ 2011-05-09 22:14 DavidHHuan 阅读(23570) 评论(2) 推荐(0)
摘要: look in the source of the d.o theme: <!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"dir="ltr"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><metahttp-equiv=&q 阅读全文
posted @ 2011-03-31 11:41 DavidHHuan 阅读(672) 评论(0) 推荐(0)
摘要: Yes, in fact that you can download the source package, and uninstall the firefox 3.6 in Ubuntu and then install the 4.0 version, but how about when you want to own 3.6 and 4.0 at the same time?Here is a way to do it.Add the source.sudoadd-apt-repositoryppa:ubuntu-mozilla-daily/ppaUpdate the sources. 阅读全文
posted @ 2011-03-29 10:27 DavidHHuan 阅读(253) 评论(0) 推荐(0)
摘要: That is just an example, but do not use it to send the spam email la! :P#!/bin/bashcleari=1while(($i<10))do/usr/sbin/sendmail-v-t-oi-ftestla@testla.com<<EOFFrom:testla@testla.comTo:testla@testla.comSubject:AutomatedDeviceVerificationtest.EOFi=$(($i+1))done 阅读全文
posted @ 2011-03-16 14:53 DavidHHuan 阅读(252) 评论(0) 推荐(0)
摘要: For example, i have there projects folders in/var/www/project_1/var/www/project_2/var/www/project_3In a common method, I have to set the virtualhost of the three projects as:<VirtualHost*:80><Directory"/var/www/project_1"></Directory>DocumentRoot"/var/www/project_1&q 阅读全文
posted @ 2011-03-10 15:07 DavidHHuan 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 30 下一页