[root@mastercontrol ~/redis-failover]# cat redtest.php rpush('number', $i); fwrite($file, "$i\n"); // So we can verify what should have been written $i++; } ?>