<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Signature]]></title><description><![CDATA[<p dir="auto">Ho questo codice:</p>
<pre><code class="language-php">&lt;?php

    $z = $_GET['z'];
    $ptz = $_GET['ptz'];
    $name = $_GET['username'];
    /*
    $ptz = 1028;
    $z = 0;    
    $name = "TomH";*/

    header("Content-type: image/png");
    $im     = ($z==1) ? imagecreatefrompng("back2z.png") : imagecreatefrompng("back1.png");
    $white = imagecolorallocate($im, 255, 255, 255);
    $px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
    $font = "arial.ttf";
    imagettftext($im, 18, 0, 376, 68, $white, $font, $ptz);
    
    
    $imagewidth = imagesx($im);
    $imageheight = imagesy($im);
    
    $font = "Arial Bold.ttf";
    
    $box = @imageTTFBbox(20,0,$font,$name);
    $textwidth = abs($box[4] - $box[0]);
    $textheight = abs($box[5] - $box[1]);
    $xcord = $imagewidth - ($textwidth)-20; // 20px from right side.
    $ycord = ($imageheight/2)+($textheight/2);
    ImageTTFText ($im, 20, 0, $xcord+6, $ycord-18, $white, $font, $name);
    imagepng($im);
    imagedestroy($im);
        
?&gt;
</code></pre>
<p dir="auto">Contenuto in index.php nella cartella sig.png<br />
nella stessa cartella ho anche back1.png e back2z.png<br />
Ma quando vado qui <a href="http://dawson02.altervista.org/sig.png?username=UserName&amp;ptz=900" rel="nofollow ugc">dawson02.altervista.org/sig.png?username=UserName&amp;ptz=900</a> il risultato è l'immagine semplice senza nessuna scritta di ciò che metto,perchè?</p>
]]></description><link>https://dev.connect.gt/topic/122200/signature</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 06:24:08 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/122200.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Feb 2010 16:29:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Signature on Sun, 07 Mar 2010 08:12:19 GMT]]></title><description><![CDATA[<p dir="auto">Mi sa che non sono installate le librerie GD nel server.<br />
Per queste cose comunque è sempre meglio darsi una riletta alla documentazione ufficiale:<br />
<a href="http://php.net/manual/en/function.imagecreatefrompng.php" rel="nofollow ugc">php.net/manual/en/function.imagecreatefrompng.php</a></p>
]]></description><link>https://dev.connect.gt/post/893915</link><guid isPermaLink="true">https://dev.connect.gt/post/893915</guid><dc:creator><![CDATA[portapipe]]></dc:creator><pubDate>Sun, 07 Mar 2010 08:12:19 GMT</pubDate></item></channel></rss>