<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>PHP Thumb: Forum: Help - Recent Posts</title>
<link>http://phpthumb.gxdlabs.com/forums/</link>
<description>Help, Suggestions, and General Discussion</description>
<language>en</language>
<pubDate>Fri, 10 Sep 2010 07:49:36 +0000</pubDate>

<item>
<title>banning on "Caching"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/caching#post-159</link>
<pubDate>Mon, 22 Mar 2010 17:23:25 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">159@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;LOL i seen where someone asked about caching for another phpthumb library. HOWEVER, i assure you i am using your library :P&#60;/p&#62;
&#60;p&#62;Anyway i was curious is there a setting to enable caching in your library so that the images don't refresh every time i go to the site? If not do you have plans on implementing such a feature in the future?&#60;/p&#62;
&#60;p&#62;Signed,&#60;br /&#62;
A long time a dedicated user of your library, &#60;strong&#62;I LOVE IT&#60;/strong&#62; :) most usefully thing i have EVER found on the internet!
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-158</link>
<pubDate>Sat, 27 Feb 2010 10:14:17 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">158@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Sorry im just now responding Ian but yes changing it from localhost to 127.0.0.1 made everything start working &#60;strong&#62;PERFECTLY!!!&#60;/strong&#62; thank you so much :)
&#60;/p&#62;</description>
</item>
<item>
<title>kapikua on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-157</link>
<pubDate>Thu, 11 Feb 2010 09:45:10 +0000</pubDate>
<dc:creator>kapikua</dc:creator>
<guid isPermaLink="false">157@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello &#60;/p&#62;
&#60;p&#62;Yes, i update JPG images. And Yes... i have 100 in compression because dont like lost cality.&#60;/p&#62;
&#60;p&#62;Whats is a level of best compresion? 80 ?
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-156</link>
<pubDate>Wed, 10 Feb 2010 09:54:33 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">156@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Are you working with JPEGs?  If so, the quality by default is 100% which uses no compression.  Take a look at the docs for more info on how to set this.
&#60;/p&#62;</description>
</item>
<item>
<title>kapikua on "Weight change after the modification"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/weight-change-after-the-modification#post-154</link>
<pubDate>Wed, 10 Feb 2010 02:19:55 +0000</pubDate>
<dc:creator>kapikua</dc:creator>
<guid isPermaLink="false">154@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hello&#60;/p&#62;
&#60;p&#62;I'm using this application to a panel of pictures and when I get an image of 50 kb to the server and change the image size but weighs 100 kb.&#60;/p&#62;
&#60;p&#62;Example:&#60;/p&#62;
&#60;p&#62;I upload an image of 800 x 600 and weighs 70 kb. When set to size up the 500 x300 image and weighs 170 kb.&#60;/p&#62;
&#60;p&#62;Someone knows why could this happen?&#60;/p&#62;
&#60;p&#62;Thanks 4 help
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-151</link>
<pubDate>Thu, 14 Jan 2010 11:08:08 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">151@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Doh, didn't see your update... either way, sounds like you got things figured out
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-150</link>
<pubDate>Thu, 14 Jan 2010 11:06:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">150@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah, but you have output before you show the image :)&#60;/p&#62;
&#60;p&#62;Basically, you can't have ANY output whatsoever before showing the image.  You'll basically need to wrap the functionality in a script that you call from an img tag in your HTML.  Check out &#34;Showing Images&#34; on &#60;a href=&#34;http://wiki.github.com/masterexploder/PHPThumb/basic-usage&#34; rel=&#34;nofollow&#34;&#62;http://wiki.github.com/masterexploder/PHPThumb/basic-usage&#60;/a&#62; (towards the bottom of the page)&#60;/p&#62;
&#60;p&#62;As far as your image goes, that's actually Gravatar ;)
&#60;/p&#62;</description>
</item>
<item>
<title>leafy34 on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-148</link>
<pubDate>Wed, 13 Jan 2010 21:14:28 +0000</pubDate>
<dc:creator>leafy34</dc:creator>
<guid isPermaLink="false">148@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Oh, and how did the site manage to get a photo of me? hahaha... I most certainly didnt upload this... OpenID maybe?
&#60;/p&#62;</description>
</item>
<item>
<title>leafy34 on "Header Restriction Errors"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/header-restriction-errors#post-147</link>
<pubDate>Wed, 13 Jan 2010 21:12:31 +0000</pubDate>
<dc:creator>leafy34</dc:creator>
<guid isPermaLink="false">147@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;&#60;strong&#62;UPDATE:&#60;/strong&#62; Found previous post, and was referred here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#ShowingImages&#34; rel=&#34;nofollow&#34;&#62;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#ShowingImages&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hi there,&#60;/p&#62;
&#60;p&#62;First off, nice application, I am really looking forward to using its functionality except, I seem to run into an error with headers.&#60;/p&#62;
&#60;p&#62;Here is what I am thrown:&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot show image, headers have already been sent' in /home/user/public_html/domain/includes/GdThumb.inc.php:569 Stack trace: #0 /home/user/public_html/domain/testthis.php(9): GdThumb-&#38;gt;show() #1 {main} thrown in /home/user/public_html/domain/includes/GdThumb.inc.php on line 569&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;Here is the code from the page &#34;testthis.php&#34;:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php require_once('includes/ThumbLib.inc.php'); ?&#38;gt;&#60;br /&#62;
&#38;lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#38;gt;&#60;br /&#62;
&#38;lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#38;gt;&#60;br /&#62;
&#38;lt;head&#38;gt;&#38;lt;title&#38;gt;&#38;lt;/title&#38;gt;&#38;lt;/head&#38;gt;&#60;br /&#62;
&#38;lt;body&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
$thumb = PhpThumbFactory::create('quotemark1.png');&#60;br /&#62;
$thumb-&#38;gt;resize(100, 100);&#60;br /&#62;
$thumb-&#38;gt;show();&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;/body&#38;gt;&#60;br /&#62;
&#38;lt;/html&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I really am unsure as to why this is happening, since there is no output before ThumbLib.inc.php is required.&#60;/p&#62;
&#60;p&#62;Any help will be very appreciated!&#60;br /&#62;
Cheers, Lea
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-146</link>
<pubDate>Tue, 08 Dec 2009 21:43:55 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">146@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah it's a path to a file.  I can't remember the EXACT path to it since I've been off windows for a long time, but it's definitely in the system32\something folder.&#60;/p&#62;
&#60;p&#62;We ran into something weird like this at my 9-5 where local sales demos of our product would act weird on some machines when using the localhost address, but worked just fine with the 127.0.0.1 address... no real explanation for it, it's just a windows thing I guess ;)
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-145</link>
<pubDate>Tue, 08 Dec 2009 20:34:55 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">145@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Is that a directory path? &#34;windows\system32\etc\hosts&#34; if so I don't see it. I use VertrigoServ to set up a quick test server on my laptops(that and it saves me the hassle of installing apache/mysql/php and it just does it all at once for me)... I'm just perplexed cause everything works fine on my other laptop
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-144</link>
<pubDate>Tue, 08 Dec 2009 13:57:35 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">144@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You tried using 127.0.0.1/path_to_image?&#60;/p&#62;
&#60;p&#62;Sometimes localhost doesn't resolve properly.  Check your windows\system32\etc\hosts file, you could probably add a line in there for localhost so it resolves.&#60;/p&#62;
&#60;p&#62;Hope that helps, and thanks for the comments :)
&#60;/p&#62;</description>
</item>
<item>
<title>banning on "localhost error "function.getimagesize: failed to open stream""</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/localhost-error-functiongetimagesize-failed-to-open-stream#post-143</link>
<pubDate>Tue, 08 Dec 2009 05:04:53 +0000</pubDate>
<dc:creator>banning</dc:creator>
<guid isPermaLink="false">143@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I don't know why but on my current host I don't get an error when I use this script. AND on my old localhost here on my laptop I never got this error. But now that I got my new localhost and copied all my info over and what not I get this error and can't figure it out. I've tried to tweak the php.ini (memory_limit to be exact) file to get it to work &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;Warning: getimagesize(http://localhost/path_to_image.../image.png) [function.getimagesize]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\path_to_php_thumb_resize\GdThumb.inc.php on line 1070&#60;/p&#62;
&#60;p&#62;Fatal error: Maximum execution time of 30 seconds exceeded in C:\path_to_php_thumb_resize\GdThumb.inc.php on line 1070&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Anyway I realize you do this all for free and on your spare time so I REALLY appreciate any and all help you can give me :) thank you &#38;#38; thank you for this AMAZING script :)
&#60;/p&#62;</description>
</item>
<item>
<title>jay on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-142</link>
<pubDate>Mon, 30 Nov 2009 03:10:50 +0000</pubDate>
<dc:creator>jay</dc:creator>
<guid isPermaLink="false">142@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi Ian, thanks for the reply. When i upload a image around 1MB and above a get the following error message:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Image file not found: ../../files/img_uploads/temp/P9240061.JPG&#34;&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And here is my code, what it does is generates two resized images. I'am i missing out?&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
require_once '../../core/classes/thumb/ThumbLib.inc.php';&#60;/p&#62;
&#60;p&#62;$options_thumb = array('resizeUp' =&#38;gt; true, 'jpegQuality' =&#38;gt; 30);&#60;br /&#62;
$options_large = array('resizeUp' =&#38;gt; true, 'jpegQuality' =&#38;gt; 90);&#60;/p&#62;
&#60;p&#62;$filePath = '../../files/img_uploads/temp/'.$primaryImage;&#60;br /&#62;
$tmpName = $_FILES[&#34;primary_image&#34;][&#34;tmp_name&#34;];&#60;br /&#62;
			move_uploaded_file($tmpName,$filePath);&#60;/p&#62;
&#60;p&#62;$thumbDir = '../../files/img_uploads/thumbnail/';&#60;br /&#62;
$largeDir = '../../files/img_uploads/large/';&#60;br /&#62;
$random = rand(1000,9999);&#60;/p&#62;
&#60;p&#62;try{&#60;br /&#62;
$thumb = PhpThumbFactory::create($filePath, $options_thumb);&#60;br /&#62;
$large = PhpThumbFactory::create($filePath, $options_large);&#60;/p&#62;
&#60;p&#62;//Generate images&#60;br /&#62;
thumb-&#38;gt;resize(100, 100)-&#38;gt;save(&#34;$thumbDir&#34;.&#34;thumbnail_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;);&#60;br /&#62;
$large-&#38;gt;resize(480, 480)-&#38;gt;save(&#34;$largeDir&#34;.&#34;large_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;);&#60;/p&#62;
&#60;p&#62;$thumbPath = &#34;$thumbDir&#34;.&#34;thumbnail_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;;&#60;br /&#62;
$largePath = &#34;$largeDir&#34;.&#34;large_&#34;.&#34;$uid&#34;.&#34;_$random&#34;.&#34;.jpg&#34;;&#60;/p&#62;
&#60;p&#62;//Remove original image&#60;br /&#62;
unlink($filePath);&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;catch (Exception $e){&#60;br /&#62;
	echo $e-&#38;gt;getMessage();&#60;br /&#62;
	exit;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-141</link>
<pubDate>Sat, 28 Nov 2009 23:11:52 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">141@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Well, depends on how you're uploading images...  Upload file size is, however, ultimately restricted at the php.ini level, but you can do so programmatically.  Since the library doesn't have any official file upload support, that's about all I can do to help you, but there are tons of articles on file uploads in PHP out there.
&#60;/p&#62;</description>
</item>
<item>
<title>jay on "Were do you set the maximum size for the image upload??"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/were-do-you-set-the-maximum-size-for-the-image-upload#post-140</link>
<pubDate>Sat, 28 Nov 2009 19:30:40 +0000</pubDate>
<dc:creator>jay</dc:creator>
<guid isPermaLink="false">140@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Were do you set the maximum size for the image upload??
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-134</link>
<pubDate>Mon, 16 Nov 2009 09:23:43 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">134@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Are you trying to sign in with your forum credentials (those you use here), or a github account?&#60;/p&#62;
&#60;p&#62;Either way, it's not a big deal, I'll create the ticket for you, but the best way to keep abreast of things is to watch me on github :)
&#60;/p&#62;</description>
</item>
<item>
<title>Frosty on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-133</link>
<pubDate>Mon, 16 Nov 2009 05:08:56 +0000</pubDate>
<dc:creator>Frosty</dc:creator>
<guid isPermaLink="false">133@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi Ian, I tried to leave a support ticket but it wouldn't let me sign in with my details :(&#60;/p&#62;
&#60;p&#62;I'll keep coming back to see if new versions support caching though. It's a great feature.&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Laurence
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-132</link>
<pubDate>Wed, 11 Nov 2009 23:15:19 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">132@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;You're right, I totally forgot to keep that sucker around... why not head over to github and file a ticket?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://github.com/iselby/PHPThumb/issues&#34; rel=&#34;nofollow&#34;&#62;http://github.com/iselby/PHPThumb/issues&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for the compliments, glad you're getting good use / enjoyment out of the library :)
&#60;/p&#62;</description>
</item>
<item>
<title>Frosty on "Image caching?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/image-caching#post-131</link>
<pubDate>Wed, 11 Nov 2009 04:26:01 +0000</pubDate>
<dc:creator>Frosty</dc:creator>
<guid isPermaLink="false">131@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Hi, in previous versions of PHPThumb the image caching was a really great feature, but in version 3.x I can't seem to find this feature anywhere.&#60;/p&#62;
&#60;p&#62;On some slower servers the caching is a really nice feature to have.&#60;/p&#62;
&#60;p&#62;Am I not using the software correctly, or is it actually missing from version 3?&#60;/p&#62;
&#60;p&#62;If it's missing, are there any plans to introduce it?&#60;/p&#62;
&#60;p&#62;Whilst leaving this message, I'd like to say what a great bit of software I think php Thumb is.&#60;/p&#62;
&#60;p&#62;Laurence
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "How save converted image into MySQL (blob)"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-save-converted-image-into-mysql-blob#post-124</link>
<pubDate>Tue, 13 Oct 2009 15:57:10 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">124@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;To store an image in the database, I'd first write it to the file system in some temp location, then use file_get_contents to get the actual data to store in the DB.&#60;/p&#62;
&#60;p&#62;As far as forcing output type, check out: &#60;a href=&#34;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#SavingImages&#34; rel=&#34;nofollow&#34;&#62;http://trac.gxdlabs.com/projects/phpthumb/wiki/Docs/BasicUsage#SavingImages&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>OrderByRand on "How save converted image into MySQL (blob)"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/how-save-converted-image-into-mysql-blob#post-123</link>
<pubDate>Mon, 12 Oct 2009 11:51:55 +0000</pubDate>
<dc:creator>OrderByRand</dc:creator>
<guid isPermaLink="false">123@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Welcome,&#60;/p&#62;
&#60;p&#62;I would ask two question.&#60;/p&#62;
&#60;p&#62;First, how can i convert image into string &#60;em&#62;then save to MySQL.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;I have try following but without positive result. ( i think its foul of headers).&#60;/p&#62;
&#60;p&#62;&#60;code&#62; ob_start();&#60;br /&#62;
 $thumb-&#38;gt;show();&#60;br /&#62;
 $out = ob_get_clean();&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Second, how force to use output format ?&#60;br /&#62;
I want store output images in JPG format.&#60;/p&#62;
&#60;p&#62;Please excuse my language
&#60;/p&#62;</description>
</item>
<item>
<title>choicecuts on "IE browser hangs when using phpthumb. Known issue?"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/ie-browser-hangs-when-using-phpthumb-known-issue#post-114</link>
<pubDate>Tue, 29 Sep 2009 07:52:22 +0000</pubDate>
<dc:creator>choicecuts</dc:creator>
<guid isPermaLink="false">114@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;I have built a wordpress plugin using the v.2 of the library, I promise to upgrade to v.3 soon. Perhaps you could try using it instead and see if that sorts out your problem. We have use in quite a few sites already and never come across the problem you mention. Get the plugin at &#60;a href=&#34;http://wordpress.org/extend/plugins/choicecuts-image-juggler/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/choicecuts-image-juggler/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-110</link>
<pubDate>Tue, 22 Sep 2009 08:09:07 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">110@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;No problem, thanks for the kind words :)  Feel free to post any other issues / concerns / suggestions you may have and enjoy!
&#60;/p&#62;</description>
</item>
<item>
<title>phillw on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-109</link>
<pubDate>Tue, 22 Sep 2009 01:55:40 +0000</pubDate>
<dc:creator>phillw</dc:creator>
<guid isPermaLink="false">109@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Well, what can I say ?  WOW !!! - fantastic, thanks for a brilliant library. The simple solution was to keep the call seperate as PHP module (Just like your example said to)... Ooops  ;-)&#60;/p&#62;
&#60;p&#62;Phill.
&#60;/p&#62;</description>
</item>
<item>
<title>phillw on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-108</link>
<pubDate>Mon, 21 Sep 2009 15:14:10 +0000</pubDate>
<dc:creator>phillw</dc:creator>
<guid isPermaLink="false">108@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah, it does help greatly ... the penny has dropped ... As you will see - my header file issues HTML commands - So, I'm guessing, I need your 'require-once' in the php heading part of my 1st header .... if that makes any sense ?&#60;/p&#62;
&#60;p&#62;Thanks for the speedy reply - I'll get my head round this stuff !!&#60;/p&#62;
&#60;p&#62;Phill.
&#60;/p&#62;</description>
</item>
<item>
<title>Ian on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-107</link>
<pubDate>Mon, 21 Sep 2009 14:22:59 +0000</pubDate>
<dc:creator>Ian</dc:creator>
<guid isPermaLink="false">107@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Yeah, I think you're talking about two completely different things... remember, if PHP is throwing an error regarding headers, this has absolutely nothing to do with the browser.&#60;/p&#62;
&#60;p&#62;Basically what's happening is that you've started output elsewhere in your PHP code, and when the library tries to send headers for the image itself the exception is thrown.  This is because PHP has already sent headers to the client, and once that's done you can't send anymore (headers were sent as a result of prior output started).&#60;/p&#62;
&#60;p&#62;Basically, removing this code from my library won't do anything for you... you'll just see essentially the same error thrown, but this time from PHP itself, rather than an exception thrown by the library.&#60;/p&#62;
&#60;p&#62;Hope that helps :)
&#60;/p&#62;</description>
</item>
<item>
<title>phillw on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-106</link>
<pubDate>Mon, 21 Sep 2009 13:19:59 +0000</pubDate>
<dc:creator>phillw</dc:creator>
<guid isPermaLink="false">106@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Oops ... Sorry, I completely missed out the Error Message ....&#60;/p&#62;
&#60;p&#62;&#60;blockquote&#62;Fatal error: Uncaught exception 'RuntimeException' with message 'Cannot show image, headers have already been sent' in /var/www/webserver/thumb_plugins/GdThumb.inc.php:562 Stack trace: #0 /var/www/webserver/mgjuddltd/html/display_parts.php(25): GdThumb-&#38;gt;show() #1 {main} thrown in /var/www/webserver/thumb_plugins/GdThumb.inc.php on line 562&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;Line 562, being the part that checks if headers have already been sent..
&#60;/p&#62;</description>
</item>
<item>
<title>phillw on "XHTML Strict &#038; phpthumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/xhtml-strict-038-phpthumbs#post-105</link>
<pubDate>Mon, 21 Sep 2009 13:13:52 +0000</pubDate>
<dc:creator>phillw</dc:creator>
<guid isPermaLink="false">105@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;Glad to see you are compliant ..... however, I have a small problem ....&#60;/p&#62;
&#60;p&#62;Your code wishes to issue &#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
public function show ()&#60;br /&#62;
	{&#60;br /&#62;
		if (headers_sent())&#60;br /&#62;
		{&#60;br /&#62;
			throw new RuntimeException('Cannot show image, headers have already been sent');&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		switch ($this-&#38;gt;format)&#60;br /&#62;
		{&#60;br /&#62;
			case 'GIF':&#60;br /&#62;
				header('Content-type: image/gif');&#60;br /&#62;
				imagegif($this-&#38;gt;oldImage);&#60;br /&#62;
				break;&#60;br /&#62;
			case 'JPG':&#60;br /&#62;
				header('Content-type: image/jpeg');&#60;br /&#62;
				imagejpeg($this-&#38;gt;oldImage, null, $this-&#38;gt;options['jpegQuality']);&#60;br /&#62;
				break;&#60;br /&#62;
			case 'PNG':&#60;br /&#62;
				header('Content-type: image/png');&#60;br /&#62;
				imagepng($this-&#38;gt;oldImage);&#60;br /&#62;
				break;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;		return $this;&#60;br /&#62;
	}&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;And my Code for XHTML compliance (and various meta-tags) has already issued this little lot at the start of each page ......&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
$charset = &#34;utf-8&#34;;&#60;br /&#62;
$mime = &#34;text/html&#34;;&#60;br /&#62;
# NOTE: To allow for q-values with one space (text/html; q=0.5),&#60;br /&#62;
# use the following regex:&#60;br /&#62;
# &#34;/text\/html;[\ ]{0,1}q=([0-1]{0,1}\.\d{0,4})/i&#34;&#60;br /&#62;
if((isset($_SERVER[&#34;HTTP_ACCEPT&#34;])) &#38;#38;&#38;#38; (stristr($_SERVER[&#34;HTTP_ACCEPT&#34;],&#34;application/xhtml+xml&#34;)))  {&#60;br /&#62;
   if(preg_match(&#34;/application\/xhtml\+xml;q=([0-1]{0,1}\.\d{0,4})/i&#34;,$_SERVER[&#34;HTTP_ACCEPT&#34;],$matches)) {&#60;br /&#62;
      $xhtml_q = $matches[1];&#60;br /&#62;
      if(preg_match(&#34;/text\/html;q=([0-1]{0,1}\.\d{0,4})/i&#34;,$_SERVER[&#34;HTTP_ACCEPT&#34;],$matches)) {&#60;br /&#62;
         $html_q = $matches[1];&#60;br /&#62;
         if((float)$xhtml_q &#38;gt;= (float)$html_q)&#60;br /&#62;
            $mime = &#34;application/xhtml+xml&#34;;&#60;br /&#62;
      }&#60;br /&#62;
   }&#60;br /&#62;
   else&#60;br /&#62;
	  $mime = &#34;application/xhtml+xml&#34;;&#60;br /&#62;
}&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;!DOCTYPE html&#60;br /&#62;
     PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34;&#60;br /&#62;
     &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#38;gt;&#60;br /&#62;
&#38;lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#38;gt;&#60;br /&#62;
&#38;lt;head&#38;gt;&#60;br /&#62;
&#38;lt;meta http-equiv=&#34;Content-Type&#34; content=&#34;&#38;lt;?php echo $mime ?&#38;gt;;charset=&#38;lt;?php echo $charset ?&#38;gt;&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;!--  The lines below are for CSS - On my sites I have the two classes,&#60;br /&#62;
 You may only have media, or you may need one for mobile (cell) phones - add / remove as you wish --&#38;gt;&#60;br /&#62;
&#38;lt;meta http-equiv=&#34;Content-Style-Type&#34; content=&#34;text/css&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;link rel=&#34;stylesheet&#34; media=&#34;screen&#34; type=&#34;text/css&#34; href=&#34;/mgjuddltd/html/mgj.css&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;link rel=&#34;stylesheet&#34; media=&#34;print&#34; type=&#34;text/css&#34; href=&#34;/mgjuddltd/html/mgj_print.css&#34; /&#38;gt;&#60;br /&#62;
&#38;lt;meta name=&#34;description&#34; content=&#34;hire plant parts, spares engineering services&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;meta name=&#34;keywords&#34; content=&#34;keys, locks, engine, parts, hire, plant, services, engineering,&#60;br /&#62;
consumables,&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;meta name=&#34;copyright&#34; content=&#34;M.G. Judd Ltd., 2009. All rights Reserved.&#34;/&#38;gt;&#60;br /&#62;
&#38;lt;meta name=&#34;no-email-collection&#34; content=&#34;http://www.unspam.com/noemailcollection&#34; /&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;/head&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;I'm still pretty new to this strict encoding, whilst trying to look after non-xhtml browsers - I'm not too sure how to get around the issuing of a &#34;content-type:&#34; to your specific requirements....&#60;/p&#62;
&#60;p&#62;I'm sorta guessing that &#60;strong&#62;&#60;em&#62;most&#60;/em&#62;&#60;/strong&#62; browsers can handle&#60;br /&#62;
jpgs &#38;#38; gifs - w3c has this to say on the matter....&#60;br /&#62;
&#60;blockquote&#62;Attributes of this type identify the allowable content type(s) of an associated URI (usually a value of another attribute on the same element). At its most general, it is a comma-separated list of media ranges with optional accept parameters, as defined in section 14.1 of [RFC2616] as the field value of the accept request header.&#60;/p&#62;
&#60;p&#62;In its simplest case, this is just a media type, such as &#34;image/png&#34; or &#34;application/xml&#34;, but it may also contain asterisks, such as &#34;image/*&#34; or &#34;*/*&#34;, or lists of acceptable media types, such as &#34;image/png, image/gif, image/jpeg&#34;.&#60;/p&#62;
&#60;p&#62;The user agent must combine this list with its own list of acceptable media types by taking the intersection, and then use the resulting list as the field value of the accept request header when requesting the resource using HTTP.&#60;/p&#62;
&#60;p&#62;For instance, if the attribute specifies the value &#34;image/png, image/gif, image/jpeg&#34;, but the user agent does not accept images of type &#34;image/gif&#34; then the resultant accept header would contain &#34;image/png, image/jpeg&#34;.&#60;/p&#62;
&#60;p&#62;A user agent must imitate similar behavior when using other methods than HTTP. For instance, when accessing files in a local filestore, &#38;lt;p src=&#34;logo&#34; srctype=&#34;image/png, image/jpeg&#34;&#38;gt; might cause the user agent first to look for a file logo.png, and then for logo.jpg.&#60;/p&#62;
&#60;p&#62;If a value for the content type is not given, &#34;*/*&#34; must be used for its value.&#60;/p&#62;
&#60;p&#62;For the current list of registered content types, please consult [MIMETYPES].&#60;/blockquote&#62;&#60;/p&#62;
&#60;p&#62;So, placing a &#60;code&#62;In its simplest case, this is just a media type, such as &#34;image/png&#34; or &#34;application/xml&#34;, but it may also contain asterisks, such as &#34;image/*&#34; or &#34;*/*&#34;, or lists of acceptable media types, such as &#34;image/png, image/gif, image/jpeg&#34;.&#60;br /&#62;
&#60;/code&#62; type statement would keep me in alignment with the rules - My question then is, what would be, if any, the effect of removing the code from your library with those directives in ?&#60;/p&#62;
&#60;p&#62;-- Yeah, I know I'm a pain in the ass, but, please try to see it my way - I already have a header section to look after all my pages, and I would be most pleased to be able to adapt to use your fantastic php-code.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Phill.
&#60;/p&#62;</description>
</item>
<item>
<title>idragon on "Displaying Thumbs"</title>
<link>http://phpthumb.gxdlabs.com/forums/topic/displaying-thumbs#post-104</link>
<pubDate>Wed, 16 Sep 2009 08:30:14 +0000</pubDate>
<dc:creator>idragon</dc:creator>
<guid isPermaLink="false">104@http://phpthumb.gxdlabs.com/forums/</guid>
<description>&#60;p&#62;thank you very much, i will try this
&#60;/p&#62;</description>
</item>

</channel>
</rss>
