0℃
0℃
php编译参数如下:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-static --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --w...
iconv, libiconv, libiconv_open, php静态编译阅读全文
0℃
今天用nginx反向代理使用upstream的时候遇到了一个很神奇的问题,特此记录下。下面给大家演示下:
nginx代理服务器配置[ip:192.168.1.166]
upstream here {
server 192.168.1.188:82;
}
server {
listen 80;
server_name testit.com;
charset utf-8;
location / {
proxy_pass http://here/;
}
}
nginx应用服务器配置如下[ip:192.168.1.188]
#001
server {
listen 82;
server_name 192.168.1.188;
root /htdocs/www/ex1;
index index.html index.htm index.php;
access_log /htdocs/logs/ex1....
Nginx, 反向代理阅读全文
0℃
网上的方法大致是以下两种:
方法一、将”keydown”替换为”keyup”,但这个不是根本办法,虽然这样改后可在firefox中及时对输入的中文进行自动匹配,但将原插件中回车、tab等重要的事件机制破坏了,比如这样改后,如果你的input是在一个form里的话,回车从原来的将选定项输入到input中变为了直接提交form表单了,这并不是我们想要的。
方法二、直接在199行加一个bind(“input”, function(){onChange(0, true);}); 这样处理也是有问题的,增加一次请求,也不是我们想要的。
这里提供的方式增加如下代码:
.bind("...
autocomplete, firfox中文, jquery阅读全文
0℃
今天提交一个form的时候遇到一个411错误, 当时我就孤陋寡闻, 第一次见到411, 查了一下然后就囧了, 是nginx直接把请求给弹回来了. 深入的查一下之后发现这个问题还是非常容易引起的, 于是我当时很奇怪的是在之前的开发中难道从来没有遇到过? 话说也是不良习惯造成的问题, 生产环境测试环境都没有nginx, 唯独产品服务器上是, 糟糕吧.
引发411的原因
nginx给出的官方解释有三种情况会引发nginx弹411回去
client sent invalid “Content-Length” header
client sent … method without “Content-Length” header
client ...
411, ningx阅读全文
0℃
1. 首先是上传页面 upload.html
<script type="text/javascript">// <![CDATA[
// 这个函数将来会被iframe用到
function callUpData(result,imgurl)
{
alert(result);
}
// ]]></script></pre>
<form action="http://image.jiunile.com/deal.php?cb=deal_cd.html" method="post" enctype="multipart/form-data" target="bridgeframe"><input type="file" name="file" />
&...
jquery跨域, 图片上传阅读全文
0℃