我想从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