Показать сообщение отдельно

  #4  
Старый 16.12.2008, 06:42
DTW
Участник форума
Регистрация: 11.05.2008
Сообщений: 202
Провел на форуме:
420713

Репутация: 104
По умолчанию

Вот как я применял

PHP код:
<?
header
("Content-type: image/gif");
$im imagecreatefromjpeg("fon.jpeg") ;
$serverip "127.0.0.1";
$port "800";
function 
status($serverip$port) {
$sockres = @fsockopen($serverip$port$errno$errstr1);
if (!
$sockres) {
return 
"off.gif";
 } else {
 @
fclose($sockres);
return 
"on.gif";
 }
}
$st2status($serverip$port);
$im2 imagecreatefromgif($st2) ;
$color imagecolorallocate($im,255,255,255) ;
$str  ="STATUS:";
imagestring($im,2,250,85,$str,$color) ;
$dX ="305";
$dY="88";
$dW="32";
$dH="8";
imagecopyresized($im,$im2,$dX,$dY,0,0,$dW,$dH,32,8) ;
imagepng($im) ;
imagedestroy($im) ;

?>
 
Ответить с цитированием