摘要:
阅读全文
摘要:
判断俩个时段是否存在交集 a1 - a2 和 b1 - b2 1、9:00 - 10:00 和 10:00 - 11:00 2、1:00 - 10:00 和 23:00 - 2:00 3、23:00 - 2:00 和 1:00 - 10:004、23:00 - 2:00 和 22:00 - 1:00 阅读全文
摘要:
mac nginx 自启动:通过brew install nginx命令安装的nginx实现自启动可执行如下命令: sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchctl load -w /Library/ 阅读全文
摘要:
匹配文章非标签内的关键词正则 />([^<]*?)$v(.*)?</is 阅读全文
摘要:
安装 xhprof cd xhprof/extension/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xhprof make make install 阅读全文
摘要:
1、0b_flush:刷新缓冲区的内容,输出。函数格式:flush()说明:这个函数经常使用,效率很高。2、ob_start :打开输出缓冲区函数格式:void ob_start(void)说明:当缓冲区激活时,所有来自PHP程序的非文件头信息均不会发送,而是保存在内部缓冲区。为了输出缓冲区的内容, 阅读全文
摘要:
ALTER TABLE causes auto_increment resequencing, resulting in duplicate entry ’1′ for key
问题:表中存在主键为0的一条数据。
解决:把主键为0的这条数据的值(主键id=0)改为其他不重复的值即可。
然后在修改自动递增。 阅读全文