PEARのモジュールとして公開されている Net_Gearman をインストールします。 #sudo pear install Net_Gearman-0.2.3 Net_Gearmanは、github でも公開されています。このページに書かれているお手本を見れば、使い方は判ると思います。 Workerの作成 Net_Gearman は、ワーカーと実際に処理を実装するジョブを別のソースに分けて書く必要があります。 Net_Gearman_Workerでワーカーを作り、addAbilityでジョブ名を登録、beginWorkでクライアントからのジョブの待ち受けを開始、みたいな流れ。 gearman_worker.php < ?php require_once 'Net/Gearman/Worker.php'; $servers = array('localhost:7003'); try {