PX : code

yahoo messenger code by sultan zahir khan
Rating: 5.00
Download this code


<html> 
<body> 
<form action="filename.php" method=post > 
<input type=text name="user_name" > 
<input type=submit value=send> 
</form> 
</body> 
</html> 
<? if ($user_name !='') { 
function yahoo_status($user) 
{ $status = @file("http://opi.yahoo.com/online?u=$user"); 
$status = $status[0]; 
if($status == "$user is ONLINE") 
{ return "Online"; } 
elseif($status == "$user is NOT ONLINE") 
{ return "Offline"; } 
else{ return "Unknown"; 


echo yahoo_status($user_name); } 
else {} 
?> </html

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.