<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Simply Breath Teching...</title>
	<atom:link href="http://www.breathteching.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.breathteching.com</link>
	<description>Resources for PHP Programmers and Small Business Operators</description>
	<lastBuildDate>Mon, 26 Apr 2010 04:50:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP Ecommerce Scale Image instead of Cropping</title>
		<link>http://www.breathteching.com/2010/04/26/wp-ecommerce-scale-image-instead-of-cropping/</link>
		<comments>http://www.breathteching.com/2010/04/26/wp-ecommerce-scale-image-instead-of-cropping/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 04:46:29 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/?p=53</guid>
		<description><![CDATA[Ok i recently had the problem where i wanted to define a max size for the images in my shopping cart. I didn&#8217;t want to set a static size for my entire carts images.
Eg I wanted it to be max of 300px height or width but not 300px wide and 300px high.
So if the image [...]]]></description>
			<content:encoded><![CDATA[<p>Ok i recently had the problem where i wanted to define a max size for the images in my shopping cart. I didn&#8217;t want to set a static size for my entire carts images.</p>
<p>Eg I wanted it to be max of 300px height or width but not 300px wide and 300px high.</p>
<p>So if the image is landscape it would be 300px wide and whatever it works it out to be height (eg 200px, anything lower than 300px). If it was portrait then i want the largest dimension to be the height (at 300px with the above example).<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
Here are the things i did to achieve this.</p>
<p>Please note &#8211; you will need knowledge of PHP to achieve this.</p>
<p>First you need to add this section of code to the file misc.functions.php &#8211; located in WP Ecommerce folder/wpsc-includes/<br />
Add this code to the switch($scaling_method) { statement (make sure it&#8217;s above the last option<br />
<code>case 'scale':<br />
if (empty($width) || empty($height))<br />
{<br />
if (!empty($width))<br />
$maxSize = $width;<br />
else if (!empty($height))<br />
$maxSize = $height;<br />
else<br />
{<br />
//error<br />
}<br />
}else<br />
{<br />
if ($width &gt; $height)<br />
$maxSize = $width;<br />
else<br />
$maxSize = $height;<br />
}</code></p>
<p>list($temp_w, $temp_h) = calculate_image_width_and_height($source_w, $source_h, $maxSize, $allowEnlarge=true);<br />
$width = $temp_w;<br />
$height = $temp_h;</p>
<p>break;</p>
<p>Replace<br />
<code><br />
// select our scaling method<br />
$scaling_method = 'cropping';<br />
</code><br />
with<br />
<code><br />
// select our scaling method<br />
$scaling_method = 'scale';<br />
</code></p>
<p>You&#8217;ll also have to change theme.functions.php in the same directory as misc.functions.php<br />
You&#8217;ll need to remove the css that the file creates.<br />
Namely the Single View Styling<br />
And the last 3 Default View Styling css statements.</p>
<p>The final change is part of your theme &#8211; i&#8217;m using the default theme, i&#8217;m not sure if you&#8217;ll have to change it for other themes or not.</p>
<p>Default theme &#8211; change single_product.php put a table around the following divs (below the div class=&#8217;textcol&#8217; div)<br />
<code>&lt;table width='100%' class='nocolour'&gt;<br />
&lt;tr&gt;<br />
&lt;td valign='top'&gt;<br />
&lt;div&gt;<br />
Image Stuff is here<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;td valign='top'&gt;<br />
&lt;div&gt;<br />
...<br />
&lt;/div&gt;<br />
&lt;/td&gt;<br />
&lt;/tr&gt;<br />
&lt;/table&gt;</code></p>
<p>I think some css changes need to be done to get this to work (namely removing the postition:relative and some of the floats and positioning for imagecol and producttext)</p>
<p>Once that is all done &#8211; you need to go the Presentation area of the Settings Area of WP E-commerce. Go to the Single Product Image Size part and fill in only one of the text boxes, leave the other blank.<br />
That should make it work for your images. I&#8217;ll be doing this for another client soon so if the process is different i&#8217;ll let you know</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2010/04/26/wp-ecommerce-scale-image-instead-of-cropping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a catch all sub domain system</title>
		<link>http://www.breathteching.com/2010/04/22/creating-a-catch-all-sub-domain-system/</link>
		<comments>http://www.breathteching.com/2010/04/22/creating-a-catch-all-sub-domain-system/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 23:18:21 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/?p=49</guid>
		<description><![CDATA[Ok recently i needed a catch all system for a website i was creating. All the tutorials i went through needed me to change the httpd.conf file. Pretty hard to do when on shared hosting. But found the solution to it using CPanel functions.
Instead of adding *.domain.com to the httpd.conf file
ServerAlias www.domain.com domain.com *.domain.com
Answer below




You [...]]]></description>
			<content:encoded><![CDATA[<p>Ok recently i needed a catch all system for a website i was creating. All the tutorials i went through needed me to change the httpd.conf file. Pretty hard to do when on shared hosting. But found the solution to it using CPanel functions.</p>
<p>Instead of adding *.domain.com to the httpd.conf file</p>
<p>ServerAlias www.domain.com domain.com *.domain.com</p>
<p>Answer below</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>You can create a subdomain using the cpanel function with * as the subdomain title. You can set it&#8217;s fileroot as public_html to redirect to the root folder, or set up as something else.</p>
<p>if you want an example of htaccess that would send the subdomain to the script -</p>
<p>&lt;IfModule mod_rewrite.c&gt;<br />
Options +FollowSymLinks<br />
Options +Indexes<br />
RewriteEngine On<br />
RewriteBase /</p>
<p>RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]<br />
RewriteRule (.*) $1?subDomain=%2 [L]</p>
<p>&lt;/IfModule&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2010/04/22/creating-a-catch-all-sub-domain-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>could not complete the request because the layer is not a valid text layer &#8211; Photoshop error</title>
		<link>http://www.breathteching.com/2010/04/19/could-not-complete-the-request-because-the-layer-is-not-a-valid-text-layer-photoshop-error/</link>
		<comments>http://www.breathteching.com/2010/04/19/could-not-complete-the-request-because-the-layer-is-not-a-valid-text-layer-photoshop-error/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 00:57:07 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Software Help]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/?p=46</guid>
		<description><![CDATA[Hi All
I recently had this error message come up whilst trying to open a file that i had created. I was opening it on the same computer. Restarting Photoshop was able to solve the problem. Hopefully this helps. I&#8217;ve read in other forums that you can normally open it in another photoshop program on a [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All</p>
<p>I recently had this error message come up whilst trying to open a file that i had created. I was opening it on the same computer. Restarting Photoshop was able to solve the problem. Hopefully this helps. I&#8217;ve read in other forums that you can normally open it in another photoshop program on a different computer and resave it. But didn&#8217;t need to do that for mine</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2010/04/19/could-not-complete-the-request-because-the-layer-is-not-a-valid-text-layer-photoshop-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWFUpload gets stuck at uploading&#8230;</title>
		<link>http://www.breathteching.com/2010/03/06/swfupload-gets-stuck-at-uploading/</link>
		<comments>http://www.breathteching.com/2010/03/06/swfupload-gets-stuck-at-uploading/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 02:22:21 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Coding Help]]></category>
		<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/?p=41</guid>
		<description><![CDATA[Recently I came across a problem while installing SWFUpload on my latest site. I had the problem before but couldn&#8217;t remember what the solution was.
When I uploaded a file with SWFUpload on my mac (OSX 10.5) it would get stuck at the uploading&#8230; status




This was cause by my upload_url file not returning any text at [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I came across a problem while installing SWFUpload on my latest site. I had the problem before but couldn&#8217;t remember what the solution was.</p>
<p>When I uploaded a file with SWFUpload on my mac (OSX 10.5) it would get stuck at the uploading&#8230; status</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>This was cause by my upload_url file not returning any text at all. Make sure when you set up the system that for every error case that some sort of output is displayed. And also on success.</p>
<p>In PHP I simply output the error message then die;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2010/03/06/swfupload-gets-stuck-at-uploading/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t get image width or height using javascript in IE 7 and 8</title>
		<link>http://www.breathteching.com/2009/11/27/cant-get-image-width-or-height-using-javascript-in-ie-7-and-8/</link>
		<comments>http://www.breathteching.com/2009/11/27/cant-get-image-width-or-height-using-javascript-in-ie-7-and-8/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 02:00:43 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Coding Help]]></category>
		<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/?p=38</guid>
		<description><![CDATA[Came across this one whilst working with an TinyMCE plugin.
I had some additional css on the image i was trying to get the height and width of &#8211; display:none;




That&#8217;s the problem. Just use visibility:hidden; in your CSS and all will be fine in the world.
Oh just in case you are using the incorrect javascript as [...]]]></description>
			<content:encoded><![CDATA[<p>Came across this one whilst working with an TinyMCE plugin.</p>
<p>I had some additional css on the image i was trying to get the height and width of &#8211; display:none;</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>That&#8217;s the problem. Just use visibility:hidden; in your CSS and all will be fine in the world.</p>
<p>Oh just in case you are using the incorrect javascript as well.</p>
<p>alert(document.getElementById(&#8216;imageId&#8217;).width);</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/11/27/cant-get-image-width-or-height-using-javascript-in-ie-7-and-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Forms won&#8217;t submit in IE when pressing enter</title>
		<link>http://www.breathteching.com/2009/06/23/forms-wont-submit-in-ie-when-pressing-enter/</link>
		<comments>http://www.breathteching.com/2009/06/23/forms-wont-submit-in-ie-when-pressing-enter/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 05:48:52 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Coding Help]]></category>
		<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/2009/06/23/forms-wont-submit-in-ie-when-pressing-enter/</guid>
		<description><![CDATA[Hi All
I&#8217;ve come across this issue yet again. Realised I&#8217;d forgotten to post it the first time.
Instance 1 &#8211; Form has 1 text field, when pressing enter the form doesn&#8217;t submit correctly, either won&#8217;t submit, or won&#8217;t send submit button value through to php.




Solution -
if ($noOfTextFields == 1)
{
//fix IE bug where if there is only [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All</p>
<p>I&#8217;ve come across this issue yet again. Realised I&#8217;d forgotten to post it the first time.</p>
<p>Instance 1 &#8211; Form has 1 text field, when pressing enter the form doesn&#8217;t submit correctly, either won&#8217;t submit, or won&#8217;t send submit button value through to php.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Solution -</p>
<p><code>if ($noOfTextFields == 1)<br />
{<br />
//fix IE bug where if there is only 1 text field you can't press enter to submit form (it doesn't send submit button name value pair)<br />
$output .= "&lt;input name='" . time() . "' style='display: none;' type='text' / &gt;";<br />
}</code></p>
<p>That should fix that instance</p>
<p>Instance 2 &#8211; Only seems to be happening in IE8 &#8211; When a form is either being hidden (using CSS display or visibility tags) or being creating dynamically when you press enter nothing will happen</p>
<p>Solution &#8211; add the following code to your form tag &#8211; Special thanks to Chris from <a href="http://chrisbegg.com">chrisbegg.com</a> for providing me with an example he used to solve the ajax problem</p>
<p><code>onkeypress=" var keycode; if (window.event) keycode = window.event.keyCode; else if (e) keycode = e.which; else return true; if (keycode == 13) {this.submit()}else {return true;}"</code></p>
<p>Make sure that it&#8217;s all on one line you know how javascript dislikes multiple lines.</p>
<p>Good luck to you all. If you find any other occurrences of this problem that aren&#8217;t covered here let me know</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/06/23/forms-wont-submit-in-ie-when-pressing-enter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Caching &#8211; Specifically for Firefox</title>
		<link>http://www.breathteching.com/2009/06/05/image-caching-specifically-for-firefox/</link>
		<comments>http://www.breathteching.com/2009/06/05/image-caching-specifically-for-firefox/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 04:59:16 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Coding Help]]></category>
		<category><![CDATA[PHP Scripts]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/2009/06/05/image-caching-specifically-for-firefox/</guid>
		<description><![CDATA[Ok so it&#8217;s Friday and it&#8217;s 2:45pm. So close to the weekend and i just spent an hour or so figuring out how to get my image caching to work on my thumbnails. Against all odds i have managed to get firefox to cache images properly &#8211; well maybe how i want it is a [...]]]></description>
			<content:encoded><![CDATA[<p>Ok so it&#8217;s Friday and it&#8217;s 2:45pm. So close to the weekend and i just spent an hour or so figuring out how to get my image caching to work on my thumbnails. Against all odds i have managed to get firefox to cache images properly &#8211; well maybe how i want it is a better term</p>
<p>So let me explain my thumbnail creator &#8211; Thumbercules, as i have named it (in reference to Gumbercules, a line said my Zoidberg on Futurama (Gumbercules, in reference to someone having the flexibility of Gumbi and the strength of Hercules)), dynamically created thumbnails at a certain height and width specified in the Url that i call eg http://www.domain.com/webimages/x/756/y/160/src/slideshows/images/4a288b1905e1b.jpg. It will check my thumb folder for an already created copy. If it finds one it will return the image from the folder. If not it creates the file then returns it.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>What was happening with my previous caching method was that Firefox would download the image, if i pressed reload it would use the cached version it had. But if i pressed reload again it would download it again and start the process over again. It wasn&#8217;t recreating the image, only clearing the cache.</p>
<p>So numerous tests were performed until i was able to come up with the following:</p>
<p><code>function returnImageFile($fileName, $imageType)<br />
{<br />
$expires = 10800;<br />
header("Expires: " . gmdate("D, d M Y H:i:s", strtotime( "+$expires seconds")) . " GMT");<br />
header("Cache-Control: public, max-age=$expires, pre-check=$expires");<br />
header("Pragma: cache", true);<br />
if(isset($_SERVER['HTTP_IF_MODIFIED_SINCE']))<br />
{<br />
// if the browser has a cached version of this image, send 304<br />
header("Last-Modified: " . gmdate('D, d M Y H:i:s', filemtime($fileName)).' GMT');<br />
header("HTTP/1.1 304 Not Modified");<br />
die;<br />
}else if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &amp;&amp; (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == filemtime($fileName)))<br />
{<br />
// option 2, if you have a file to base your mod date off:<br />
// send the last mod time of the file back<br />
header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($fileName)).' GMT',<br />
true, 304);<br />
header("HTTP/1.1 304 Not Modified");<br />
die;<br />
}else<br />
{<br />
header("Last-Modified: " . gmdate('D, d M Y H:i:s', filemtime($fileName)).' GMT');<br />
}<br />
switch ($imageType)<br />
{<br />
case '1':<br />
case 'gif':<br />
header("Content-type: image/gif");<br />
ob_start();<br />
readfile($fileName);<br />
$ImageData = ob_get_contents();<br />
$ImageDataLength = ob_get_length();<br />
ob_end_clean();<br />
header("Content-Length: ".$ImageDataLength);<br />
echo $ImageData;<br />
break;<br />
case '2':<br />
case 'jpg':<br />
case 'jpeg':<br />
header("Content-type: image/jpeg");<br />
ob_start();<br />
readfile($fileName);<br />
$ImageData = ob_get_contents();<br />
$ImageDataLength = ob_get_length();<br />
ob_end_clean();<br />
header("Content-Length: ".$ImageDataLength);<br />
echo $ImageData;<br />
break;<br />
case '3':<br />
case 'png':<br />
header("Content-type: image/png");<br />
ob_start();<br />
readfile($fileName);<br />
$ImageData = ob_get_contents();<br />
$ImageDataLength = ob_get_length();<br />
ob_end_clean();<br />
header("Content-Length: ".$ImageDataLength);<br />
echo $ImageData;<br />
break;<br />
}<br />
die;</code></p>
<p>This script returns the file with the size value as well as the correct headers to cache the file. If you don&#8217;t want to cache the image then you should change the approach slightly, i can&#8217;t see many times where you would require thumbnails to not be cached. But for other dynamically created images refer to my other post about creating non cached images. <a href="/2007/11/10/firefox-caches-images-when-it-shouldnt/">Firefox Caches Images when it Shouldn&#8217;t</a></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>If anyone has any points to make please do make them, i haven&#8217;t had a chance to test this well on IE or Safari. As they don&#8217;t have an easy to use plugin like firebug, which tells you when something is being returned from cache or not.</p>
<p>As always good luck with your programming, hopefully this saves someone some of the hassle, or at least saves someone more time then it took me to write this</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/06/05/image-caching-specifically-for-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8216;Length&#8217; is null or not an object error in FCKEditor</title>
		<link>http://www.breathteching.com/2009/06/01/length-is-null-or-not-an-object-error-in-fckeditor/</link>
		<comments>http://www.breathteching.com/2009/06/01/length-is-null-or-not-an-object-error-in-fckeditor/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 02:08:13 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/2009/06/01/length-is-null-or-not-an-object-error-in-fckeditor/</guid>
		<description><![CDATA[So i&#8217;m back after a lengthy absence in posting fixes. No that&#8217;s not because i haven&#8217;t had any frustrating bugs that i&#8217;ve worked long and hard to solve. Simply i&#8217;ve been too busy. Came across this problem in IE where it throws a length is null or not an object error.




After lengthy google searching and [...]]]></description>
			<content:encoded><![CDATA[<p>So i&#8217;m back after a lengthy absence in posting fixes. No that&#8217;s not because i haven&#8217;t had any frustrating bugs that i&#8217;ve worked long and hard to solve. Simply i&#8217;ve been too busy. Came across this problem in IE where it throws a length is null or not an object error.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>After lengthy google searching and tinkering I found the problem to be an extra comma at the end of one of my custom toolbar sets in the fckconfig.js file</p>
<p>/editor/fckconfig.js is the default file path.</p>
<p>Hope this helps anyone in trouble.</p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/06/01/length-is-null-or-not-an-object-error-in-fckeditor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>file_exists doesn&#8217;t work for me</title>
		<link>http://www.breathteching.com/2009/02/05/file_exists-doesnt-work-for-me/</link>
		<comments>http://www.breathteching.com/2009/02/05/file_exists-doesnt-work-for-me/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 00:53:44 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/2009/02/05/file_exists-doesnt-work-for-me/</guid>
		<description><![CDATA[Ok i&#8217;ve run across this problem a few times in my programming life, where file_exists always returns false. I don&#8217;t think i&#8217;ve ever properly fixed it. Generally I make some crappy work around, which ends up causing more harm than good.




So here&#8217;s a small checklist to solve the problem.

 Check the file path you are [...]]]></description>
			<content:encoded><![CDATA[<p>Ok i&#8217;ve run across this problem a few times in my programming life, where file_exists always returns false. I don&#8217;t think i&#8217;ve ever properly fixed it. Generally I make some crappy work around, which ends up causing more harm than good.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>So here&#8217;s a small checklist to solve the problem.</p>
<ol>
<li> Check the file path you are actually sending the function. eg file_exists(BASE_DIR . &#8220;/images/image1.jpg&#8221;);
<ul>
<li>I always like to do a print_r on whatever is in between the brackets just to make sure i&#8217;m not completely inept.</li>
<li>For this example i have too many &#8216;/&#8217; that could be causing me dilemmas.</li>
</ul>
</li>
<li>Check that the folders/files you are accessing don&#8217;t have any safe mode restrictions.</li>
<li>If those 2 solutions didn&#8217;t work and you have ensured you have passed the correct file path then put a call to the function &#8220;<span class="refname">clearstatcache()</span>&#8221; before the file_exists function.</li>
</ol>
<p>If you still have problems even after that, then send me a comment and I&#8217;ll help you debug it.</p>
<p>Happy Coding</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/02/05/file_exists-doesnt-work-for-me/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FCKEditor shows current website instead of editor area</title>
		<link>http://www.breathteching.com/2009/01/05/fckeditor-shows-current-website-instead-of-editor-area/</link>
		<comments>http://www.breathteching.com/2009/01/05/fckeditor-shows-current-website-instead-of-editor-area/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 04:35:21 +0000</pubDate>
		<dc:creator>bretto36</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.breathteching.com/2009/01/05/fckeditor-shows-current-website-instead-of-editor-area/</guid>
		<description><![CDATA[FCKEditor can sometime display a website in it&#8217;s iframe instead of the editor panel. This is especially common when using .htaccess rewrite engine.
A friend of mine encountered this issue for a second time, we both always seem to forget the solution, so he suggested I write a blog about it.




When using FCKEditor and our cms [...]]]></description>
			<content:encoded><![CDATA[<p>FCKEditor can sometime display a website in it&#8217;s iframe instead of the editor panel. This is especially common when using .htaccess rewrite engine.</p>
<p>A friend of mine encountered this issue for a second time, we both always seem to forget the solution, so he suggested I write a blog about it.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>When using FCKEditor and our cms we use htaccess redirects, but because they cascade through the sub folders FCKEditor also follows these Redirects.</p>
<p>To make FCKEditor work properly simple add&#8230;</p>
<p>RewriteEngine off</p>
<p>&#8230;to the .htaccess file in the editor directory.  This will keep FCKEditor using it default settings and not trying to use your parent folder redirects.</p>
<p>Enjoy!</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-1300158297655257";
/* 468x60, created 6/28/09 */
google_ad_slot = "9266821861";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.breathteching.com/2009/01/05/fckeditor-shows-current-website-instead-of-editor-area/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
