摘要:
最近学了点shell编程,寻思锻炼下写一个。平常你学习或者看别人讲,自己不练习肯定不行,基本上一动手准出错哈哈。等自己去实践,才会知道哪里有问题,哪里容易出错,哪里要注意什么的。 因为我们每个人有自己linux环境的开发机。每天早晨来工作,都要更新下svn的代码。这个步骤已经比较习惯了,也没想... 阅读全文
摘要:
之前配过ubuntu的。。以为centos的也是这么配置,结果照抄下来,启动报错哈哈...网上搜下资料发现centos配置需要不少文件。忘了以后再参考下~ubuntu的,这样配置vim /etc/network/interfaces改内容如下:auto eth0iface eth0 inet s... 阅读全文
摘要:
利用replace、length的内置函数SELECT id, length(field) - length(replace(field,',',''))+1 as count FROM `table` where 1 阅读全文
摘要:
$('.chooseImage').click(function(){ wx.chooseImage({ count: pic_num, // 默认9,大于9也是显示9 sizeType: ['compressed']... 阅读全文
摘要:
strstr($a, $b)和strchr()一样,起的别名,表示查找$a中第一次出现$b,并返回字符串的剩余部分: 。strrchr()从后往前查第一个出现的 直接写两行代码: 练练算法,用php部分实现strstr()函数,检查一个串是不是另一个串的子串,简单测了一下可以 阅读全文
摘要:
原文参考:http://www.51ou.com/browse/msyql/43081.html having 和 where 参考 http://blog.csdn.net/yexudengzhidao/article/details/54924471 having是对组进行过滤。where是对行 阅读全文
摘要:
原文地址: http://www.toptal.com/php/10-most-common-mistakes-php-programmers-make 译文地址:http://codecloud.net/php-2056.html Common Mistake #1: Leaving dangli 阅读全文
摘要:
原文地址:http://article.gitos.cn/2015/Aurthur/PHP-Mod-PHP-And-Fast-CGI-Explain.html背景PHP最常用的方式是以模块的方式(mod_php)运行在Apache中,也是Apache运行PHP的默认方式;但在Nginx中,Nginx... 阅读全文
摘要:
【转】http://yulans.cn/linux/linux%E5%B8%B8%E7%94%A8%E7%B3%BB%E7%BB%9F%E4%BF%A1%E6%81%AF%E6%9F%A5%E7%9C%8B%E5%91%BD%E4%BB%A4#系统# uname -a #... 阅读全文
摘要:
pathinfo() - Returns information about a file path parse_str() - Parses the string into variables parse_url() - Parse a URL and return its components 阅读全文