note 75160 added to function.syslog
| From: | developeratsyscodotch at osu1 dot php dot net | Date: | Tue, 15 May 2007 16:35:33 +0000 |
| Subject: | note 75160 added to function.syslog | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126622@lists.php.net to get a copy of this message | ||
It is also possible to send a syslog message to an other server instead of the local one (to
centralize messages or to trig something else on an other machine for example). This works also for
Windows based computers !
It is a simple PHP class and it works like this:
<?php
require_once('syslog.php');
$syslog = new Syslog();
$syslog->Send('192.168.0.1', 'My first PHP syslog message');
?>
You can download the free syslog.php file here: http://developer.sysco.ch/php/syslog.zip
(full source code and documentation)
Sockets support must be enabled.
In Linux and *nix environments, the extension is enabled at compile time using the --enable-sockets
configure option
In Windows, PHP Sockets can be activated by un-commenting extension=php_sockets.dll in php.ini
----
Server IP: 194.153.94.10
Probable Submitter: 212.74.141.29
----
Manual Page -- http://www.php.net/manual/en/function.syslog.php
Edit -- https://master.php.net/note/edit/75160
Del: integrated -- https://master.php.net/note/delete/75160/integrated
Del: useless -- https://master.php.net/note/delete/75160/useless
Del: bad code -- https://master.php.net/note/delete/75160/bad+code
Del: spam -- https://master.php.net/note/delete/75160/spam
Del: non-english -- https://master.php.net/note/delete/75160/non-english
Del: in docs -- https://master.php.net/note/delete/75160/in+docs
Del: other reasons-- https://master.php.net/note/delete/75160
Reject -- https://master.php.net/note/reject/75160
Search -- https://master.php.net/manage/user-notes.php