<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020561" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020561</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126085</link>
    <description> &lt;p&gt;Okay, I&#039;ll try it out tomorrow when I get home from school.&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Feb 2003 05:16:30 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1126085 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126072</link>
    <description> &lt;p&gt;Looking at the image, you might want to trim($song) before assigning it to $message[].&lt;/p&gt;
 </description>
     <pubDate>Tue, 25 Feb 2003 00:41:20 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1126072 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126070</link>
    <description> &lt;p&gt;It is all working.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$pw &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;!= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;[edited out]&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) { exit(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;What are you doing?\&quot;); }&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textSize&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textGutter&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingBottom&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp; = 4;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingRight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = 4;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 4;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginBottom&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginRight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = \&quot;|SiC| is currently listening to:\&quot;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$song&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = 0;&lt;br /&gt;foreach (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; as &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$line&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strlen(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$line&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) &amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = strlen(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$line&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = imageFontHeight(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textSize&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = imageFontWidth(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textSize&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textboxHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp; = (count(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) * (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)) + ((count(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;)-1) * &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textGutter&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) + (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingBottom&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textboxWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp; = (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$max_length&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) + (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingRight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textboxHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginBottom&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + 1;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textboxWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginRight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + 1;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = imageCreate (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorBG&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = imagecolorallocate (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 200, 0, 0);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorBorder&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = imagecolorallocate (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 153, 153, 153);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorText&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = imagecolorallocate (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 255, 255, 255);&lt;br /&gt;&lt;br /&gt;imageFilledRectangle(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 0, 0, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - 1), (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - 1), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorBG&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;for (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=0; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&amp;lt;count(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;); &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; imageString (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textSize&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + 1), (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$paddingTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; + ((&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;+1) * (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) + (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$textGutter&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;))), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$message&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$i&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorText&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;imageRectangle(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginLeft&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginTop&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgWidth&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginRight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - 1), (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$imgHeight&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$marginBottom&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; - 1), &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$colorBorder&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&lt;br /&gt;imageInterlace(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, 1);&lt;br /&gt;&lt;br /&gt;imagePNG(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;song.png\&quot;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;And if anyone wants to see what it is doing you can see here:&lt;br /&gt;
&lt;a href=&quot;http://www.drewhopkins.com/song/song.png&quot; class=&quot;bb-url&quot;&gt;http://www.drewhopkins.com/song/song.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is just displaying what song winamp is currently playing. I have a winamp pluging that submits a URL every time the song changes and this is the script it loads from that URL.&lt;/p&gt;
&lt;p&gt;*added*&lt;br /&gt;
Just in case anyone wants to know $pw and $song are from the URL.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.site.com/script.php?pw=whatever&amp;amp;song=The+Song&quot; class=&quot;bb-url&quot;&gt;http://www.site.com/script.php?pw=whatever&amp;amp;song=The+Song&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Feb 2003 23:26:35 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1126070 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126020</link>
    <description> &lt;p&gt;Oh cool.  I didn&#039;t know that those functions took an optional filename.  Very handy.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Feb 2003 07:12:44 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1126020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126019</link>
    <description> &lt;p&gt;I got it to work. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// now send the picture to the client (this outputs all image data directly)&lt;br /&gt;//imageGIF($image);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;imagePNG&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;changed to&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// now save the picture&lt;br /&gt;//imageGIF($image, $filename);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;file.png\&quot;;&lt;br /&gt;imagePNG(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filename&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Feb 2003 04:49:26 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1126019 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1126018</link>
    <description> &lt;p&gt;I&#039;m not getting it to work. Well I got it to display what I wanted the first time, I just can&#039;t get your save routine to work.&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Feb 2003 04:37:44 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1126018 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1125994</link>
    <description> &lt;p&gt;Welcome to TWF!&lt;/p&gt;
&lt;p&gt;You mean saving that into a .png file?  The easiest way to do that would probably have one script (script1) run the image script (script2), and save the output to a file.&lt;/p&gt;
&lt;p&gt;For example: (untested)&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// script 1&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;ob_start&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;();&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;read_file&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;script2.php?message[]=\&quot;.URLEncode(&#039;Line 1&#039;).\&quot;&amp;amp;message[]=\&quot;.URLEncode(&#039;Line 2&#039;).\&quot;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = ob_get_contents();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fopen(\&quot;image1.png\&quot;, \&quot;r+\&quot;)) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fwrite(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$image&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$fp&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;ob_end_clean();&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 24 Feb 2003 01:09:44 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1125994 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1125990</link>
    <description> &lt;p&gt;And now how would I go about actually saving that as an image. Not just displaying the image when the script is executed?&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Feb 2003 23:57:19 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1125990 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1125989</link>
    <description> &lt;p&gt;Yes it&#039;s me from G4B2S. I remember you were on these forums so thats why I came here.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Feb 2003 23:50:24 +0000</pubDate>
 <dc:creator>|SiC|</dc:creator>
 <guid isPermaLink="false">comment 1125989 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/creating-images-php#comment-1125988</link>
    <description> &lt;p&gt;Oh, here&#039;s my test script:&lt;br /&gt;
&lt;a href=&quot;http://host.maxalbert.com/testing_center/gd1.php&quot; class=&quot;bb-url&quot;&gt;http://host.maxalbert.com/testing_center/gd1.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 23 Feb 2003 23:24:56 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1125988 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
