 |
|
|
|
 |
PEZ68
Progressive Resistance

Registered: May 2002
Location: 1€/j (soldes)
|
|
|
Jun-12-2004 08:09
|
|
|
 |
 |
Nightflowers
prog lover

Registered: Jan 2002
Location: Vallée des Vents Brûlants
|
|
|
Jun-12-2004 12:30
|
|
|
 |
 |
_IDS_
Forever on the run...

Registered: Jan 2003
Location: Black Mesa
|
|
|
Jun-12-2004 13:01
|
|
|
 |
 |
NeoWave
ahah

Registered: Jan 2004
Location: je remonte !!
|
|
|
Jun-12-2004 13:17
|
|
|
 |
 |
Nightflowers
prog lover

Registered: Jan 2002
Location: Vallée des Vents Brûlants
|
|
|
| quote: | Originally posted by NeoWave
est ce que tu pourrais me donner les source php de ton petit script, car a vrai dire j'ai pas trop de notion concernant le traitement d'une chaine de texte :
comment analyser ca :
"SONG:Benny Benassi - Love is Gonna Save Us (Vadim Zhukov Remix):SONG
S:30:ST:37:T
NS:Perpetuous Dreamer - Future Funland 2004 (Astura Remix).mp3:NS"
pour sortir uniquement le : "Benny Benassi - Love is Gonna Save Us (Vadim Zhukov Remix)"
EDIT : Dsl g joué mon noob, y a tt d'indiqué sur le site..
<= auto flagellation 
EDIT 2 : j'arrive pas a trouver un genrateur d'image php digne de ce nom, si tu pouvais m'indiquer le tiens ... Merci |
le generateur d'image c'est mon script mais cette partie est assez capricieuse selon le serveur
pour l'extraction par contre rien de plus simple etant donné que le fichier php est fourni sur le site 
code: /**
*
* Currently Hearing Example PHP Implementation
*
* How to use this file on your site:
*
* First, include this file from another.
* include('dir/song.php');
*
* Then run the function
* $song_info = showSong('dir/song.txt', '-', 'Nothing', '3', '0', '1');
*
* Then simply echo the $song_info variable at any time.
*
**/

sinon voila ma methode perso pour afficher le bordel
code:
Header("Content-type: image/png");
include('song.php');
if(!isset($s)) $s=6;
$song_info = showSong('song.txt', '-', 'Winamp is closed', '3', '0', '1');
if (strlen($song_info)>100)
{
$song_info = substr($song_info,0,97) . "...";
}
$font = "$DOCUMENT_ROOT/04b03.ttf";
$size = imagettfbbox($s,0,$font,$song_info);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=4;
$ypad=3;
$im = imagecreatefrompng("webamp.png");
$white = imagecolorat($im, 1, 1);
ImageTTFText($im, $s, 0, 20, 13, $white, $font, $song_info);
ImagePNG($im);
ImageDestroy($im);
?>
pour plus de details/explications sur le code hesite pas a demander
___________________

WAYS OF CONSCIOUSNESS On PARIS ONE (P1 Trance)
Every Saturday @ 4pm, Monday @ 8am + Thursday @ 0am (GMT+1)
OUT NOW ! : Axelle Roch - Serial Lovers (Nightflowers pres. Neurologik Remix) [MPDR092]
Also available :
A Boy And A Radio - Continuum (Nightflowers pres. Wild Symmetry Remix) [MPDR083]
Ness - Balloon (Nightflowers pres. Neurologik Dub) [MPDR063]
|
|
Jun-12-2004 13:40
|
|
|
 |
 |
|
 |
 |
Insigma
poste utile.

Registered: Mar 2002
Location: A life of trance & running...
|
|
|
Jun-12-2004 16:15
|
|
|
 |
All times are GMT. The time now is 01:08.
Forum Rules:
You may not post new threads
You may not post replies
You may not edit your posts
|
HTML code is ON
vB code is ON
[IMG] code is ON
|
|
|
|
|
|
Contact Us - return to tranceaddict
Powered by: Trance Music & vBulletin Forums
Copyright ©2000-2026, Jelsoft Enterprises Ltd.
Privacy Statement / DMCA
|