上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页
摘要: The article comes from:http://www.apaddedcell.com/easy-php-debugging-ubuntu-using-xdebug-and-vimA debugger helps greatly when testing or bug fixing in... 阅读全文
posted @ 2011-09-28 22:18 DavidHHuan 阅读(829) 评论(0) 推荐(0) 编辑
摘要: After i installed netbeans7.0, the language of is Chinese, thought i am a chinese, but of netbeans, i am not similar with the interface of Chinese, so i have to change the language to english.open the /path_to_netbeans/etc/netbeans.conf, add the code as below:netbeans_default_options="-J-client 阅读全文
posted @ 2011-09-28 21:50 DavidHHuan 阅读(262) 评论(0) 推荐(0) 编辑
摘要: \s 匹配任何空白字符,包括空格、制表符、换页符等等。等价于 [ \f\n\r\t\v]。很多情况下,都是用length来直接判断字符串是否为空,如下:varstrings='';if(string.length==0){alert('不能为空');}但如果用户输入的是空格,制表符,换页符呢?这样的话,也是不为空的,但是这样的数据就不是我们想要的吧。其实可以用正则表达式来把这些“空”的符号去掉来判断的varstrings='';if(strings.replace(/(^\s*)|(\s*$)/g,"").length==0) 阅读全文
posted @ 2011-09-23 11:04 DavidHHuan 阅读(22284) 评论(0) 推荐(0) 编辑
摘要: 在创建网站的时候,很多时候都需要输入一些中文的段落来填充页面,大多数会是找一些新闻之类的来复制粘贴。以下代码是利用php来随机生成一些中文段落,以便用来测试。GBK版:<?phpheader('Content-type:text/html;charset=gbk');functioncreateWords($words=128){$seperate=array(",","。","!","?",";");$strings='';for($i=0;$i<$ 阅读全文
posted @ 2011-09-23 00:07 DavidHHuan 阅读(1747) 评论(1) 推荐(0) 编辑
摘要: 如以下命令:查找/home/davidhhuan/www/tao文件夹下面所有包含StorebaseApp字眼的php文件find/home/davidhhuan/www/tao-typef-name"*.php"|xargsgrep"StorebaseApp" 阅读全文
posted @ 2011-09-22 14:45 DavidHHuan 阅读(956) 评论(0) 推荐(0) 编辑
摘要: In fact that, i do not remember whether it is w3c strict or wcag2.0A, in a link ( <a href="xxx"></a>), we can not use target="_blank" to open the link in a new page.here we can use onclick to pass the requirement. Code as: <ahref="http://www.cnblogs.com/davidh 阅读全文
posted @ 2011-09-22 14:31 DavidHHuan 阅读(469) 评论(0) 推荐(0) 编辑
摘要: just follow the steps below:First step:sudovim/etc/apache2/sites-available/defaultModify the code from<Directory/>OptionsFollowSymLinksAllowOverrideNone</Directory>to<Directory/>OptionsFollowSymLinksAllowOverrideNone</Directory><Directory/>OptionsFollowSymLinksAllowOver 阅读全文
posted @ 2011-09-21 11:23 DavidHHuan 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 众所周知,Ubuntu11.04使用sudo apt-get 安装好的php版本是5.3.5,很多网站都是不兼容的,所以要找个办法降级。还好借助google,把问题都搞掂了~创建一个php_version.sh,然后输入下面内容。#!/bin/bash#byRubenBarkow(rubo77)http://www.entikey.z11.de/#OriginallyPostedbyBachstelzehttp://ubuntuforums.org/showthread.php?p=9080474#post9080474#OK,here'showtodotheAptmagictoget 阅读全文
posted @ 2011-09-20 18:51 DavidHHuan 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 众所周知,在window下面打包的zip在linux下面是不能直接解压的,因为zip在linux下面是按照系统默认的字符集来解压的。不过也无碍,其实zip本来是可以指定解压的字符集的。如使用下面命令unzip-OGBKmycpmpressfile.zip(用CP936,GB18030也可以) 阅读全文
posted @ 2011-09-16 17:55 DavidHHuan 阅读(456) 评论(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 阅读(422) 评论(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 阅读(499) 评论(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 阅读(454) 评论(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 阅读(319) 评论(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 阅读(737) 评论(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 阅读(940) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页