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
|