
php
headool
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
php require include
Its quite common to see such lines : require_once('../../lib/some_class.php'); This approach has many drawbacks : It first searches for directories specified in the include paths of php , then转载 2013-01-20 15:40:55 · 281 阅读 · 0 评论 -
Yiibooster popover 鼠标置于popover上 不隐藏
yiibooster bootstrap 的popover控件能够由hover触发,但是一旦想移动鼠标离开原button,进入popover时,popover控件就消失了,很多情况下我们期望它不消失。 显然hover触发是不行了,我们自己加代码控制。 widget('ext.bootstrap.widgets.TbButton', array(原创 2013-10-30 17:15:54 · 1217 阅读 · 0 评论 -
php socket
以下代码用socket监听localhost:8080端口,当用户输入一串字符后,回显’you say ‘ +那串字符。 <?php $host = 'localhost'; $port = '8080'; $welcome = socket_create(AF_INET, SOCK_STREAM, 0); socket_bind($welcome, $host, $port); socket原创 2013-11-20 17:06:49 · 643 阅读 · 0 评论 -
linux 安装php redis模块
wget https://github.com/nicolasff/phpredis/archive/master.zip unzip master.zip cd phpredis-master phpize ./configure make sudo make install最后在php的配置文件里添加extension=redis.so原创 2013-11-22 12:55:51 · 653 阅读 · 0 评论 -
nginx php 500
出错码:500 出错日志:rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 192.168.190.1, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.190.14原创 2013-12-16 12:27:22 · 2111 阅读 · 0 评论 -
php in_array
<?php $var0 = ['a', 'b', 3]; $var1 = 'a'; var_dump(is_array($var0)); var_dump(is_array($var1)); 运行结果 bool(true) bool(false)原创 2013-12-16 09:54:05 · 593 阅读 · 0 评论