Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Design-Ireland.net:
Logging Messages to Scribe from PHP
Nov 19, 2010 @ 16:28:32

On the Design-Ireland.net site, there's a recent tutorial showing you how to log messages to Scribe from PHP. Scribe is Facebook's open sourced server for aggregating log data streamed in from multiple places.

n a previous tutorial, I showed you how to install Facebook Scribe on a Linux server. In this tutorial we will continue to look at Scribe, but this time from the client perspective. Note that this tutorial assumes that you already have your Scribe and Thrift environment set up as outlined in the previous tutorial. You can log messages to Scribe from many different languages. In this tutorial I will show you how to use Thrift to generate a PHP client, and then use that client from your own PHP project to log messages.

The tutorial walks you through setting up Thrift to work with your PHP installation and gives an example script to send your first messages over to the Scribe server. They also show how you can go into the Scribe instance's folders and look for the log information you just inserted.

tagged: log message tutorial thrift scribe facebook

Link:

Pressflow Wiki:
Using Cassandra with PHP
Nov 18, 2010 @ 20:18:44

On the Pressflow wiki there's a handy guide to getting PHP up and working with the Cassandra, the Apache Project's distributed database solution. (Note: Pressflow is Drupal-related, but this tutorial isn't specific to that.)

The guide walks you through the steps you'll need to build the Thrift client (with a list of a few dependencies) and build the PHP extension using this install. With the module built, they help you change the php.ini to load the shared module and include the commands you'll need to start up the Cassandra server. There's also a link to a sample script you can use to test out the full installation.

If you're having trouble making the connection, read through the comments for some common problems from other users.

tagged: cassandra tutorial install configure extension thrift

Link:


Trending Topics: