News, Reviews & Commentary From A Mac Perspective...
Hints, Tips and Rumors

10.5: Create an XKCD-influenced Mac ‘doorbell’

Randall Munroe’s XKCD has inspired interesting product features in the past. A recent one has sent a lot of Mac users scurrying to set up an audio doorbell on their Mac Minis.

Here’s my solution; paste the following code into a text editor and save it as, for example, say.php in the top-level /Library » WebServer » Documents folder of the Mac you wish to turn into the doorbell:

<?php
if (isset($_GET['say'])) {
$cmd = sprintf('say "%s"', $_GET['say']);
`$cmd`;

} else if (isset($_GET['up'])) {
$cmd = 'set o...









										

« Six must-have iPhone freebies | SEC looking into Apple’s disclosures on Jobs’ health »

 

You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply