Category Archives: php

Redis connection test script

1234567891011121314151617181920212223242526<?php require "../predis/autoload.php";  // Update with your location to predis Predis\Autoloader::register(); try {     $redis = new Predis\Client();     // Uncomment the following lines and adjust them accordingly if you have a non-default redis configuration /*     … Continue reading

Posted in php, Web Development | Leave a comment

Introduction to Logging and Tracing in PHP

If you still tracing variable in php using print_r() or var_dump() then you’ll see them directly in the screen or the web page that you’re working on. This is easy to see, but also prone to problems: What if visitors … Continue reading

Posted in php, Web Development | Leave a comment

Check For Loaded PHP Extensions

Sometimes you want to make sure a certain PHP extension is loaded or not. These extensions can be curl, xmlrpc, or ldap. After all, when you move your application from one server to another the configuration is not necessarily the … Continue reading

Posted in php, Web Development | Leave a comment