Documentation

进程管理(Process Manager)

启动进程(Start Process)

<?php

$process = new Phalcon\Process\Proc('ping localhost', __DIR__.'/run.pid');
$process->reStart();
$ret = $process->handle(function($pipe, $data) {
    // on read
    echo $data;
}, function($pipe){
    // on send
}, function($pipe, $error){
    // on error
}, function(){
    // on timeout
});