PHP5.3.27 的扩展php_opcache.dll
测试平台:Windows 2008 R2 x64 (IIS7.5 FastCGI,Apache2.2.23,Apache2.4.3, Nginx 1.2.9)
包含 Non Thread Safe 和 Thread Safe
如果用的是 FastCGI 请使用 Non Thread Safe 版
php_opcache.dll 的使用方法
php.i...
PHP5.3.27 的扩展php_opcache.dll
测试平台:Windows 2008 R2 x64 (IIS7.5 FastCGI,Apache2.2.23,Apache2.4.3, Nginx 1.2.9)
包含 Non Thread Safe 和 Thread Safe
如果用的是 FastCGI 请使用 Non Thread Safe 版
php_opcache.dll 的使用方法
php.i...
function whois_query($domain) {
// fix the domain name:
$domain = strtolower(trim($domain));
$domain = preg_replace('/^http:\/\//i', '', $domain);
$domain = preg_... //娱乐
$a = array(11,22,3523,45,24,564,55,34,56423,5,34,654,4);
$count = count($a);
for($i=0;$i<$count;$i++){
$min = $a[$i];
$mink = $i;
... 代码如下
<?php
/**
* 获取某段时间内修改的文件及结构
*
* @author aboc QQ:9986584
* @website http://www.phpec.org
*/
header('Content-Type:text/html;charset=utf-8');
$savepath = 'F:/lastedit/';
if(isset... /**
* js开新窗口,不被拦截
* @author aboc
**/
function open_url(url){
var tempurl = url.split("?");
var input = '';
if(typeof tempurl[1] != 'undefined'){
var query = t... <?
error_reporting(0);
Header("...PHP有着众多的内置函数,其中大多数函数都被开发者广发使用。但也有一些同样有用却被遗忘在角落,本文将介绍7个鲜为人知功能却非常酷的函数。
1.highlight_string()
当需要在网页中展示PHP代码时,highlight_string()函数就显得非常有用。该函数通过PHP内置定义的颜色,返回函数中代码的高亮显示版本。
<?php highlight_strin...
强制不换行
white-space:nowrap;
自动换行
强制英文单词断行
背景图填充白色背景
$white = imagecolorallocate($dstim,255,255,255); imagefilledrectangle($dstim,0,0,$width,$height,$white); imagecolortransparent($dstim,$white);
设置图片走透明通道
$img = imagecreatefrompng($src);...
// jQuery
var els = $('.el');
// Native
var els = document.querySelectorAll('.el');
// Shorthand
var $ = function (el) {
return document.querySelectorAll(el);
}
var els = $('.el'... Nginx上传文件出现一个错误:413 Request Entity Too Large,百度了一下,原来是文件太大了。
原因上传文件超过最大值,修改nginx.conf的值就可以解决了。
client_max_body_size 2M
改为
client_max_body_size 5M;
$(document).ready(function()
{
alert($(window).height()); //浏览器窗口可视区域高度
alert($(document).height()); //浏览器窗口文档的高度
alert($(document.body).height());//浏览器窗口文档body的高度
alert($(document.body).ou... 今天我在开启MYSQL慢查询的时候,MYSQL服务死活不能启动,报错:
[ERROR] MySQL: unknown variable 'log-slow-queries=D:/ProgramData/MySQL/phpec_org-slow.log'
半天找不到原因,后面经过不断百度,发现原来MYSQL5.6版以上已经取消了log-slow-queries这个参数,改为slow-query-lo...