mam wszystko dobrze skonfigurowane, serwer php, play.php o tesci:
- Kod: Zaznacz wszystko
- <?php
 $lines = file("play.txt");
 $artist = trim($lines[1]);
 $title = trim($lines[2]);
 $play = trim($lines[3]);
 if ($play) $header = "W Winampie gra:";
 else $header = "W Winampie gra:";
 if (strlen($artist)>35) $artist = substr($artist, 0, 35)."...";
 if ($artist == "-"){
 $artist=substr($title, 0, strpos($title, "-")+1);
 $title=substr($title, strpos($title, "-")+1, strlen($title));
 }
 if (strlen($title)>35) $title = substr($title, 0, 35)."...";
 $max = max(strlen($artist), strlen($title));
 $im = imagecreatefromjpeg("nowplay.jpg"); //image that generated image bases on
 $font = 2;
 $artist_width = strlen($artist) * imagefontwidth($font);
 $title_width = strlen($title) * imagefontwidth($font);
 $background = imagecolorallocate($im,0,0,0);
 $text_color = imagecolorallocate($im, 000,000,0);
 $ax = 220-($artist_width/2);
 $tx = 220 -($title_width/2);
 $y=18;
 imagestring ($im, $font, 120-(strlen($header) * imagefontwidth($font)/2), $y - imagefontheight($font)-1, $header, $text_color);
 imagestring ( $im, $font, $ax, $y, $artist, $text_color);
 imagestring ( $im, $font, $tx, $y+imagefontheight($font)+1, $title, $text_color);
 header("Content-type: image/jpeg");
 imagejpeg($im);
 ?>
oraz plugin now playing... le.. wime ze jeszcze potrzeny jest plik play.txt... i on ma sie (chyba sam stworzyc, ale tego nei robi) a dokladnie nei wime co ma byc w nim... ;/ bo obrazek wyglada (juz skonfigurowany i gotowy do odtworzenia itp.)
- Kod: Zaznacz wszystko
- http://www.fibi07.cba.pl/winamp/play.php
- Kod: Zaznacz wszystko
- http://fibi.prv.pl/play.jpg
nie wime co moze byc przyczyna... ;/


 
	


 
	
 
	 
  


 
	
 
