From c5d463cf4584d20c97b661d90f79f66208d31f8e Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 6 Apr 2011 16:31:38 +0800 Subject: [PATCH] Notify.php --- Notify.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Notify.php b/Notify.php index 36aad25d..a65cf319 100644 --- a/Notify.php +++ b/Notify.php @@ -56,7 +56,20 @@ class Pman_Core_Notify extends Pman } function run($id) { + $php = 'php'; + $cwd = realpath(dirname(__FILE__) . '/../../'); + $app = 'index.php' .'/Core/NotifySend.php '. $id; + $cmd = $php . ' ' . $app; + $p = proc_open($cmd, $cwd , array()); + $this->pool[] = $p; + } + + function poolfree() { + foreach($this->pool as $p) + + } + } \ No newline at end of file -- 2.39.2