Skip navigation.

Harold's Home

   Home
  
XML version of this site

PHP Scripts

Index
CLI fun
Mail on 404
HB-NS (NewsScript)

Downloads

Applescripts
APOD to Desktop
Dreamweaver Extensions

Stuff

Writings
Other stuff
Central Grinder

OOOk Default:

VJ stuff
VJ Tools
Bananas
Strippers
Sample Movies

News

Determine iTunes share status with PHP
You can easily determine whether an iTunes share is running using a small PHP script. Include this in your PHP enabled website, changing the ip where appropriate.
$fp = @fsockopen ("your.ip.here", 3689, $errno, $errstr, 1);
if (!$fp)
{
echo "iTunes not running.<br>\n";
}
else
{
fclose ($fp);
echo "<a href=\"daap://your.ip.here:3689\">Connect to iTunes share.</a><br>\n";
}

Show all items | Read all items

About, copyright, privacy and accessibility | Mail