php 系列

1.给 跑在windows 环境下的php, 安装redis 拓展。(installing Redis & Redis extension in PHP on XAMPP on windows.)

  step 1: 安装redis server(windows) http://fellowtuts.com/php/install-redis-redis-extension-in-php-on-windows/

  各个版本的 PHP 的 redis 拓展(windows)的下载地址, pecl上面。https://pecl.php.net/package/redis/2.2.7/windows

  (  PECL stands for PHP Extension Community Library, these are packages written in C and need to be compiled into a .dll (for windows) and put into php/ext folder      and corresponding changes made into php.ini in order to be used.)

  打开 php.ini 文件,加入这一行 extension="php_redis.dll", 重启服务器。

   写一段测试 redis 的代码:

$redis = new Redis();
$redis->connect('127.0.0.1');
$redis->set('foo', 'bar');
$value = $redis->get('foo');

echo $value;

效果如下图所示:

2. 深入PHP内核(二)——SAPI探究 

http://www.csdn.net/article/2014-09-26/2821885-exploring-of-the-php-2

原文地址:https://www.cnblogs.com/oxspirt/p/5485745.html