-
HTTP状态码
常见的 200 – OK,服务器成功返回网页 – Standard response for successful HTTP requests. 301 – Moved Permanently(永久跳转),请求的网页已永久跳转到新位置。 – This and all futur ...
http://codante.org/http-header-status-code -
xdebug安装及配置
下载 wget http://www.xdebug.org/files/xdebug-2.1.1.tgz 安装 cd xdebug-2.1.1 #创建configure /servers/app/php/bin/phpize ./configure –enable-xdebug –with-php-config=/servers/app/php/bin/ph ...
http://codante.org/xdebug-installation-and-configuration -
REMOTE_ADDR,HTTP_CLIENT_IP,HTTP_X_FORWARDED_FOR
/** * 获得用户的真实IP地址 * * @access public * @return string */ function real_ip() { static $realip = NULL; if ($realip !== NULL) { return $realip; } if (isset($_SERVER)) { if (isset($_SERVER['HTT ...
http://codante.org/remote_addr-http_client_ip-http_x_forwarded_for -
PHP中用Memcache存储Session数据
使用memcached的好处不言而喻,它不仅减少了系统访问数据库的压力,而且提高系统的反应速度。特别是做多台服务器集群时,memcached有效的解决了session共享的问题。架构确实变复杂了一些,但应用起来却极为简便,几 ...
http://codante.org/memcache-php-session-handle -
wordpress搜索页面关键词加亮
在搜索页面中将关键词高亮标出
http://codante.org/wordpress-search-keyword-highlight -
PHP中不太常用的方法
在php中,有一些方法经常被人们所遗忘,在一些特定的需求下,他们还是非常有用的。
http://codante.org/less-commonly-used-in-php -
PHP中header的使用范例
本文对于php中header的使用做出了比较详细的解释。
http://codante.org/php-header-example -
PHP获取当前类名、方法名
__CLASS__ 获取当前类名 __FUNCTION__ 当前函数名(confirm) __METHOD__ 当前方法名 (bankcard::confirm)
http://codante.org/php-class-function-names
最新评论