logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Audio Monitoring Server Traffic
Author
ArtM



Joined: 23 Feb 2006
Posts: 59
Location: Bedford NS Canada

PostPosted: Sat 11 Mar '06 4:55    Post subject: Audio Monitoring Server Traffic Reply with quote

I have a number of relatively low traffic 'vanity' domains for my kids etc and I would like to hear when there is traffic on a site. That is a WAV file I set up identified with the site is played when someone hits it.

Anyone know of a poor man's monitoring program to do this - or suggest a technique to make it happen?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7288
Location: Germany, Next to Hamburg

PostPosted: Sat 11 Mar '06 20:00    Post subject: Reply with quote

With win32std you can play a sound onto the server
define in the php.ini the auto_prepend_file or auto_append_file

in the file

Code:

<?php
win_play_wav("C:\Winnt\Media\start.wav");
?>
Back to top
ArtM



Joined: 23 Feb 2006
Posts: 59
Location: Bedford NS Canada

PostPosted: Sun 12 Mar '06 0:29    Post subject: Reply with quote

James Blond wrote:
With win32std you can play a sound onto the server
define in the php.ini the auto_prepend_file or auto_append_file

in the file

Code:

<?php
win_play_wav("C:\Winnt\Media\start.wav");
?>


Hey James - that works pretty good!

Took me a few minutes to track down the Win32Std.dll extension at

http://pecl4win.php.net/list.php/5_1

and activate the extension in php.ini

After restarting Apache, works great. Thank you.
Back to top


Reply to topic   Topic: Audio Monitoring Server Traffic View previous topic :: View next topic
Post new topic   Forum Index -> Apache