Feb
16
2017
ip2long转换IP时数值太大产生负数的解决方法
【造成原因】:Because PHP's integer type is signed, and many IP addresses will result in negative integers.
【解决办法】:其官方手册中提到,可以“you need to use the "%u" formatter of sprintf() or printf() to get the string r...
Feb
10
2017
什么是移动Sitemap协议,如何提交移动Sitemap协议
百度推出了移动Sitemap协议,用于将网址提交给移动搜索收录。百度移动Sitemap协议是在标准Sitemap协议基础上制定的,增加了<mobile:mobile/>标签,它有四种取值:
<mobile:mobile/> :移动网页
<mobile:mobile type="mobile"/> :移动网页
<mobile:mobile ...
Feb
08
2017
ini_set()函数的使用以及post_max_size,upload_max_filesize的修改方法
Apache服务器处理:
ini_set('display_errors', 'Off');
ini_set('memory_limit', -1); //-1 / 10240M
ini_set("max_execution_time", 0);
//ini_set('magic_quotes_gpc', 'On');
<IfModule mod_php5.c>
p...
Jan
17
2017
thinkphp运行时间中的Exec:缓慢
作者:罪惡 发布于:2013-7-9 13:38 Tuesday 数据库
最近在windows上开发应用的时候发现一个有趣的问题:我的本地程序连接本地mysql库居然要延迟1秒钟左右才能打开。
问题分析
考虑到可能是程序性能问题后,我使用了xdebug的性能日志功能输出程序运行日志后发现连接mysql的函数时间居然用掉了接近95%的执行时间。
确认是mysql性能问题后,考虑是mysql的...
Jan
17
2017
thinkphp IIS下伪静态配置
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="OrgPage" stopProcessing="true">
<mat...
Jan
16
2017
19个字让你说服力翻倍
作者:吴寒笛
链接:https://www.zhihu.com/question/19700986/answer/87090256
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
提高说服力的技巧有很多,比如重视愿景描绘、连续提问引导对方关注点等等,但这些都有较高的口才要求和技能储备,并不是适合所有人。
我接下来要讲的这四个技巧,非常简单好用,基本是上午...
Jan
09
2017
webuploader 解决不能重复上传问题
根据查看webuploader文档 里面有个duplicate属性,是可选的, true为可重复 ,false为不可重复 默认为undifind 也是不可重复。
所以只需在属性的后面追加duplicate:true 就可以实现重复上传。
uploader = WebUploader.create({
swf: 're...
Jan
09
2017
webuploader php解决中文文件上传问题
<?php
// Make sure file is not cached (as it happens for example on iOS devices)
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
...









最新评论
感谢分享,谢谢
谢谢分享
感谢分享
@impdx:是的,做业务太多了,算法题...
迎难而上!算法和数据结构对于有经验的程序...
了解
@欧清辣哨:不客气~
你好nb,多谢了!
双击666
不错不错