Blog Archives

网页使用webfonts时不平滑

FreeBSD+Nginx+PHP正常

CentOS+Apache+PHP正常

Windows 7+IIS+PHP正常

Windows 2003+IIS+PHP 不正常,字体不平滑,服务器已开启ClearType。[……]

继续阅读

2013-08-28 Comments (0)
阅读全文

file_get_contents无法请求https连接的解决方法

PHP.ini默认配置下,用file_get_contents读取https的链接,就会如下错误:
Warning: fopen() [function.fopen]: Unable to find the wrapper “https” – did you forget to enable it[……]

继续阅读

2013-08-25 Comments (0)
阅读全文

phpinfo被禁用,可用php探针

UPDATE 2018-04-17 16:24

不说废话,直接上代码。

<?php
header("content-Type: text/html; charset=utf-8");
header("Cache-Control: no-cache, must-revalidate");[......]

继续阅读

2013-08-25 Comments (0)
阅读全文

CSS中的text-index无效

有时候我们在写css中使用text-indent,发现text-indent的值为负数的时候无效。
尝试一下为该容器添加属性text-align:left;[……]

继续阅读

HTML, 前端 
2013-08-18 Comments (0)
阅读全文

Linux下VI编辑器的使用

Linux下使用VI如何复制粘贴

1.单行复制
在命令模式下,将光标移动到将要复制的行处,按“yy”进行复制;

2.多行复制
在命令模式下,将光标移动到将要复制的首行处,按“nyy”复制n行;其中n为1、2、3……

3.粘贴
在命令模式下,将光标移动到将要粘贴的行处,按“p”[……]

继续阅读

2013-08-17 Comments (0)
阅读全文

FreeBSD增加、删除以及管理用户(适用Linux)

1.用到的命令

添加用户:adduser

删除用户:rmuser +用户名

查看用户:vipw

2.添加用户
#adduser
Username:用户名
Full name:全名(可不填,直接回车)
Uid (Leave empty for default) :要求输[……]

继续阅读

2013-08-17 Comments (0)
阅读全文

php.ini里面的memory_limit是什么?

PHP5中,对于memory_limit的设定已经从以往的8M扩大到128M的上限。

memory_limit是什么意思呢?

memory_limit,是最大单线程的独立内存使用量。也就是说用户发起一个web请求,这个线程中最大可以使用的内存是多少。

memory_limit默认配[……]

继续阅读

2013-08-16 Comments (0)
阅读全文

PHP的时间操作大全

1.获取时间:date(),格式化:date(“Y-m-d H:i:s”)(可以自己试一下Y、m、d、H、i、s大小写的效果哦)

2.获取时间戳:time()、strtotime()

3.时间戳转换为时间:date(“Y-m-d H:i:s”,时间戳)

4.时间转换为时间戳:str[……]

继续阅读

2013-08-07 Comments (0)
阅读全文

使用sql语句在原字段上追加内容

在php操作mysql时,如果想在原有的字段上追加内容,需要使用sql语句的内部库concat,如下:

 

[php]

$sql=”update tablename set info=concat(info,’追加的内容’) where id=1″;

[/php][……]

继续阅读

2013-08-07 Comments (0)
阅读全文

Truncated incorrect DOUBLE value

php在更新mysql数据库的时候出现错误:“Truncated incorrect DOUBLE value:”。

1.第一种错误原因,你的SQL语句可能是这么写的:

$sql="update tablename set username='mukti' and info='test' whe[......]

继续阅读

2013-08-07 Comments (0)
阅读全文

TOP