Return to Snippet

Revision: 9917
at November 30, 2008 06:19 by davidsword


Updated Code
$button = "http://mystatus.skype.com/smallicon/username.png";
$status = "status.png";
copy($button, $status);
//online = 428  offline = 376
if (filesize($status) > 400) {
	//online
} else {
	//offline
}

Revision: 9916
at November 30, 2008 04:28 by davidsword


Updated Code
$button = "http://mystatus.skype.com/smallicon/username.png";
$status = "status.png";
copy($button, $status);
//online = 428  offline = 376
if (filesize($status) > 400) {
	echo "online";
} else {
	echo "offline";
}

Revision: 9915
at November 30, 2008 04:26 by davidsword


Initial Code
$file = 'http://mystatus.skype.com/smallicon/yourskypename.png';
$newfile = 'status.png';
copy($file, $newfile);
//online = 428  offline = 376
if (filesize($newfile) > 400) {
	echo "online";
} else {
	echo "offline";
}

Initial URL
http://davidsword.ca/

Initial Description
Checks the size of skypes online "status buttons" to determine online/offline status, so you're able to use custom buttons, text.. etc, etc

Initial Title
Custom Skype online/offline status

Initial Tags
text

Initial Language
PHP