Merhaba,
Ziyaretçi
. Lütfen
giriş yapın
veya
üye olun
.
Aktivasyon mailiniz gelmediyse
buraya tıklayın.
Mayıs 13, 2008, 06:10:07 pm
41812
Mesaj
9080
Konu Gönderen:
17479
Üye
Son üye:
umit_cbn
Ana Sayfa
Yardım
Ara
Giriş Yap
Kayıt
Turk-Php.Com Forum
|
Yardım Forumları
|
PHP Yardım Forumu
|
PHP Class Deposu
|
class ICQ
« önceki
sonraki »
Sayfa:
[
1
]
Yazdır
Yazan
Konu: class ICQ (Okunma Sayısı 521 defa)
aziz
PHP Programcısı
Offline
Mesaj Sayısı: 915
...And ::Justice:: For All
class ICQ
«
:
Ekim 02, 2006, 08:17:51 pm »
PHP Manual den alıntı küçük ama hoş bir sınıf...
Kod:
<?php
class
ICQ
{
var
$crc
= array(
'253889085'
=>
'offline'
,
'1177883536'
=>
'online'
,
'1182613274'
=>
'hidden'
);
//CRCs valid as long as the redirect-page does not change
function
getCrc
(
$url
) {
$ch
=
curl_init
();
curl_setopt
(
$ch
,
CURLOPT_URL
,
$url
);
curl_setopt
(
$ch
,
CURLOPT_HEADER
,
0
);
ob_start
();
curl_exec
(
$ch
);
curl_close
(
$ch
);
$cache
=
ob_get_contents
();
ob_end_clean
();
//print($cache);
return (string)
abs
(
crc32
(
$cache
));
}
function
status
(
$number
) {
$check
=
$this
->
getCrc
(
'http://status.icq.com/online.gif?icq='
.
$number
.
'&img=5'
);
if (
in_array
(
$check
,
array_keys
(
$this
->
crc
))) {
return
$this
->
crc
[
$check
];
}
return
false
;
}
}
?>
Durum:
<?php
$icq
= new
ICQ
();
print(
$icq
->
status
(
'icq numaranız'
));
?>
Logged
Jabber:
xmpp:aziz@member.turk-php.com
Alihan ÇETİN
www.azizce.com
Sayfa:
[
1
]
Yazdır
« önceki
sonraki »
Gitmek istediğiniz yer:
Gitmek istediğiniz yer:
-----------------------------
Turk-PHP
-----------------------------
=> Bizden Size
=> Sizden Bize
=> Makale İstekleri ve Yorumlar
=> Jabber İletişim Hizmeti
-----------------------------
Yardım Forumları
-----------------------------
=> Genel Yardım
=> PHP Yardım Forumu
===> PHP Class Deposu
=> Diğer Programlama Dilleri Yardım Forumu
=> Veritabanı Yardım Forumu
=> Linux/Unix Yardım Forumu
=> Sunucu Yardım Forumu
=> HTML & JavaScript & XML Forumu
===> AJAX
=> Uygulama Yükleme, Kurulum ve Ayarları
Turk-Php.Com Forum | SMF Forum Software © 2001-2005,
Lewis Media
. All Rights Reserved.