我想從PHP發送咆哮通知。接收計算機是OSX,我能夠接收本地通知以及從其他計算機執行的ruby腳本的通知。沒有設置密碼。如何從php咆哮
我使用php-growl類和我的代碼如下所示:
<?php
require 'class.growl.php';
$ip_address = '10.0.0.210';
$growl = new Growl($ip_address, '');
// Register with the remote machine.
// You only need to do this once.
$growl -> register();
// Send your message
$growl -> notify('PHP Growl', 'Title', 'Here\'s the body text');
?>
我的劇本是在咆哮本地註冊,但不會顯示任何通知。我在我的日誌文件中也找不到任何PHP錯誤。
關於如何發送/接收的任何建議咆哮沒有使用密碼?
'echo'Grrrrrrrr!';';-) – ceejayoz 2011-06-09 02:43:42