Vai al contenuto

creare script


Messaggi raccomandati

Allora il conto alla rovescia non lo si fa con tante immagini diverse (o meglio se vuoi fallo pure, buona fortuna), ma con imagestring() e una funzione per contare i giorni mancanti (che devi ragionarti tu su basi algebriche). Io ti posso dare il codice della firma Adobe. Include una funzione per fare un testo con una linea fuori per rendere tutto più estetico ;).

<span class="syntaxhtml">

<span class="syntaxdefault"><?php

</span><span class="syntaxkeyword">function </span><span class="syntaxdefault">imageoutlinedstring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$incolor</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">){

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$incolor</span><span class="syntaxkeyword">);

}

function </span><span class="syntaxdefault">calculatedays</span><span class="syntaxkeyword">() {

    </span><span class="syntaxdefault">$month </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">date</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"n"</span><span class="syntaxkeyword">);

    </span><span class="syntaxdefault">$day </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">date</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"j"</span><span class="syntaxkeyword">);

    if (</span><span class="syntaxdefault">$month </span><span class="syntaxkeyword">== </span><span class="syntaxdefault">3</span><span class="syntaxkeyword">) {

        </span><span class="syntaxdefault">$rmn </span><span class="syntaxkeyword">= (</span><span class="syntaxdefault">12 </span><span class="syntaxkeyword">+ (</span><span class="syntaxdefault">31 </span><span class="syntaxkeyword">- </span><span class="syntaxdefault">$day</span><span class="syntaxkeyword">));

    } else {

        </span><span class="syntaxdefault">$rmn </span><span class="syntaxkeyword">= (</span><span class="syntaxdefault">12 </span><span class="syntaxkeyword">- </span><span class="syntaxdefault">$day</span><span class="syntaxkeyword">);

    }

    if (</span><span class="syntaxdefault">$rmn </span><span class="syntaxkeyword"><= </span><span class="syntaxdefault">0</span><span class="syntaxkeyword">) {

        return </span><span class="syntaxstring">":)"</span><span class="syntaxkeyword">;

    } else {

        return </span><span class="syntaxstring">"-"</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">$rmn</span><span class="syntaxkeyword">;

    }

}

</span><span class="syntaxdefault">$pics </span><span class="syntaxkeyword">= array(</span><span class="syntaxstring">"countdown.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownpink.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownblue.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownyellow.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdowngrey.png"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">$im </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">imagecreatefrompng</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$pics</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">rand</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">count</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$pics</span><span class="syntaxkeyword">) - </span><span class="syntaxdefault">1</span><span class="syntaxkeyword">)]);

</span><span class="syntaxdefault">$black </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">imagecolorallocate</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">$white </span><span class="syntaxkeyword">= </span><span class="syntaxdefault">imagecolorallocate</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-type: image/png"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imageoutlinedstring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">3</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">65</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">65</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">calculatedays</span><span class="syntaxkeyword">(),</span><span class="syntaxdefault">$white</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$black</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imagepng</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imagedestroy</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">?>

</span></span>[/code:1px58dtw]

Di più non posso fare. La funzione calculatedays() conta i giorni solo fino al 12 aprile e funziona solo a partire da marzo. Dovrai modificarla e organizzare tutto il resto, ma hai la base per farlo.

Link al commento
Condividi su altri siti

Allora il conto alla rovescia non lo si fa con tante immagini diverse (o meglio se vuoi fallo pure, buona fortuna), ma con imagestring() e una funzione per contare i giorni mancanti (che devi ragionarti tu su basi algebriche). Io ti posso dare il codice della firma Adobe. Include una funzione per fare un testo con una linea fuori per rendere tutto più estetico ;).

<span class="syntaxhtml">

<span class="syntaxdefault"><?php

function imageoutlinedstring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$incolor</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">){

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">-</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">+</span><span class="syntaxdefault">1</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$outcolor</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    imagestring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$image</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$font</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$x</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$y</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$string</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$incolor</span><span class="syntaxkeyword">);

}

</span><span class="syntaxdefault">function calculatedays</span><span class="syntaxkeyword">()</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{

</span><span class="syntaxdefault">    $month </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> date</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"n"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    $day </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> date</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"j"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    if </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$month </span><span class="syntaxkeyword">==</span><span class="syntaxdefault"> 3</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{

</span><span class="syntaxdefault">        $rmn </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">12 </span><span class="syntaxkeyword">+</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">31 </span><span class="syntaxkeyword">-</span><span class="syntaxdefault"> $day</span><span class="syntaxkeyword">));

</span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> else </span><span class="syntaxkeyword">{

</span><span class="syntaxdefault">        $rmn </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">12 </span><span class="syntaxkeyword">-</span><span class="syntaxdefault"> $day</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}

</span><span class="syntaxdefault">    if </span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$rmn </span><span class="syntaxkeyword"><=</span><span class="syntaxdefault"> 0</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{

</span><span class="syntaxdefault">        return </span><span class="syntaxstring">":)"</span><span class="syntaxkeyword">;

</span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}</span><span class="syntaxdefault"> else </span><span class="syntaxkeyword">{

</span><span class="syntaxdefault">        return </span><span class="syntaxstring">"-"</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">$rmn</span><span class="syntaxkeyword">;

</span><span class="syntaxdefault">    </span><span class="syntaxkeyword">}

}

</span><span class="syntaxdefault">$pics </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> array</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"countdown.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownpink.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownblue.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdownyellow.png"</span><span class="syntaxkeyword">,</span><span class="syntaxstring">"countdowngrey.png"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">$im </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> imagecreatefrompng</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$pics</span><span class="syntaxkeyword">[</span><span class="syntaxdefault">rand</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">count</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$pics</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">-</span><span class="syntaxdefault"> 1</span><span class="syntaxkeyword">)]);

</span><span class="syntaxdefault">$black </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> imagecolorallocate</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">0</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">$white </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> imagecolorallocate</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">255</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">header</span><span class="syntaxkeyword">(</span><span class="syntaxstring">"Content-type: image/png"</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imageoutlinedstring</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">3</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">65</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">65</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">calculatedays</span><span class="syntaxkeyword">(),</span><span class="syntaxdefault">$white</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">$black</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imagepng</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">imagedestroy</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">$im</span><span class="syntaxkeyword">);

</span><span class="syntaxdefault">?>

</span></span>[/code:ir7f5e57]

Di più non posso fare. La funzione calculatedays() conta i giorni solo fino al 12 aprile e funziona solo a partire da marzo. Dovrai modificarla e organizzare tutto il resto, ma hai la base per farlo.

ma con quale programma lo devo fare con visual basic?

Link al commento
Condividi su altri siti

Crea un account o accedi per lasciare un commento

Devi essere un membro per lasciare un commento

Crea un account

Iscriviti per un nuovo account nella nostra community. È facile!

Registra un nuovo account

Accedi

Sei già registrato? Accedi qui.

Accedi Ora

Giochi in Uscita



  • Community Hive Community Hive

    Community Hive allows you to follow your favorite communities all in one place.

    Follow on Community Hive
  • Utenti

    Non ci sono membri da mostrare

×
×
  • Crea Nuovo...