<?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>Sidewaysgravity Blog &#187; Programming</title>
	<atom:link href="http://blog.sidewaysgravity.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sidewaysgravity.com</link>
	<description>How else can you explain running into walls?</description>
	<lastBuildDate>Sun, 02 Oct 2011 15:40:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Modifying Individual Corners of Rounded Rect in Fireworks</title>
		<link>http://blog.sidewaysgravity.com/2011/04/modifying-individual-corners-of-rounded-rect-in-fireworks/</link>
		<comments>http://blog.sidewaysgravity.com/2011/04/modifying-individual-corners-of-rounded-rect-in-fireworks/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 02:53:23 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=362</guid>
		<description><![CDATA[I came across this quick tip today that has just made my life much easier. When working with the rounded rectangle tool in Fireworks, after creating your rectangle you will notice there will be triangles near each corner. Click on them will modify all corners equally. You can drag it to increase the corner size, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.sidewaysgravity.com/wp-content/uploads/2011/04/roundedRect.png"><img class="alignright size-full wp-image-366" title="Fireworks Rounded Rectangle" src="http://blog.sidewaysgravity.com/wp-content/uploads/2011/04/roundedRect.png" alt="" width="188" height="131" /></a>I came across this quick tip today that has just made my life much easier. When working with the rounded rectangle tool in Fireworks, after creating your rectangle you will notice there will be triangles near each corner. Click on them will modify all corners equally. You can drag it to increase the corner size, or click to change the type of corner. But I already knew that.</p>
<p>If on the other hand you hold down the <strong>option key</strong> [mac] or <strong>alt key</strong> [windows] then it will only modify the selected corner. This works for resizing and changing the corner type.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Modifying+Individual+Corners+of+Rounded+Rect+in+Fireworks+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D362" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Modifying+Individual+Corners+of+Rounded+Rect+in+Fireworks+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D362" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2011/04/modifying-individual-corners-of-rounded-rect-in-fireworks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP function: implode()</title>
		<link>http://blog.sidewaysgravity.com/2010/12/php-function-implode/</link>
		<comments>http://blog.sidewaysgravity.com/2010/12/php-function-implode/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 19:47:43 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=359</guid>
		<description><![CDATA[I learned something new about the implode function the other day, namely that the order of the parameters does not matter. Ordinarily you would give the &#8220;glue&#8221; and then the array in that order, but the function will work the same if you provide them in reverse as well. I will just determine which is the string [...]]]></description>
			<content:encoded><![CDATA[<p>I learned something new about the implode function the other day, namely that the order of the parameters does not matter. Ordinarily you would give the &#8220;glue&#8221; and then the array in that order, but the function will work the same if you provide them in reverse as well. I will just determine which is the string and which is the array and use the properly.</p>
<p><code>$glue = ",";<br />
$array = array('hello', 'world');<br />
echo implode($glue, $array) // echos hello,world<br />
echo implode($array,$glue) // echos hello,world</code></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+function%3A+implode%28%29+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D359" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+function%3A+implode%28%29+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D359" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2010/12/php-function-implode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP array_diff Quick Tip</title>
		<link>http://blog.sidewaysgravity.com/2010/10/php-array_diff-quick-tip/</link>
		<comments>http://blog.sidewaysgravity.com/2010/10/php-array_diff-quick-tip/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 17:56:04 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=352</guid>
		<description><![CDATA[When using array_diff in php be sure to remember that this is a one way comparison. While this is not news, it is an easily overlooked part of the documentation for array_diff. It took me a few minutes the other day to figure out why my code was not working. What this means? If you [...]]]></description>
			<content:encoded><![CDATA[<p>When using array_diff in php be sure to remember that this is a one way comparison. While this is not news, it is an easily overlooked part of the documentation for array_diff. It took me a few minutes the other day to figure out why my code was not working.</p>
<p>What this means? If you have {a, b, c} in array1, and {c, d, e} in array2, than array_diff(array1, array2) would produce a third array with the values {a, b} and <strong>not {a, b, d, e}</strong>. If instead you are needing to get the second set, so all the values that are not in both, there are a few options. This was my solution, though I am sure there are better ways out there.</p>
<p><code>$diff1 = array_diff($array1, $array2);<br />
$diff2 = array_diff($array2, $array1);<br />
$final = array_merge($diff1, $diff2);</code></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+array_diff+Quick+Tip+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D352" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+array_diff+Quick+Tip+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D352" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2010/10/php-array_diff-quick-tip/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The Chris Keefer Experiment: SEO</title>
		<link>http://blog.sidewaysgravity.com/2010/06/the-chris-keefer-experiment-seo/</link>
		<comments>http://blog.sidewaysgravity.com/2010/06/the-chris-keefer-experiment-seo/#comments</comments>
		<pubDate>Thu, 24 Jun 2010 19:41:47 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Websites]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=346</guid>
		<description><![CDATA[Over the past week a friend of mine has endeavored to increase his presence on the web with his blog. He decided to completely rework his blog from the ground up, geared toward better search engine optimization (SEO). A big change that he has made is in the frequency of his postings which average 1-3 [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past week a friend of mine has endeavored to increase his presence on the web with his blog. He decided to completely rework his blog from the ground up, geared toward better search engine optimization (SEO).</p>
<p>A big change that he has made is in the frequency of his postings which average 1-3 per day. Over the past week he has gone from a unknown page in google search to page one. Currently he has focused mainly on people who search his own name (Chris Keefer). It will be interesting to see how his blog continues to grow over the coming weeks and months and to see what other directions he will be focusing his SEO attentions.</p>
<p>If you would like to get a little idea of the inner workings of Chris, take a gander at his rebuild blog.</p>
<p><a title="Blog of Chris Keefer" href="http://mynameisreef.com/" target="_self">http://mynameisreef.com/</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=The+Chris+Keefer+Experiment%3A+SEO+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D346" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=The+Chris+Keefer+Experiment%3A+SEO+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D346" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2010/06/the-chris-keefer-experiment-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP error: expecting T_PAAMAYIM_NEKUDOTAYIM</title>
		<link>http://blog.sidewaysgravity.com/2010/05/php-error-expecting-t_paamayim_nekudotayim/</link>
		<comments>http://blog.sidewaysgravity.com/2010/05/php-error-expecting-t_paamayim_nekudotayim/#comments</comments>
		<pubDate>Mon, 10 May 2010 14:42:50 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=340</guid>
		<description><![CDATA[I ran across this error the other day while setting up a nested foreach loop. When looking at the error logs all I found was expecting T_PAAMAYIM_NEKUDOTAYIM. Which was not very helpful. If you find that you have this error, try looking for a missing dollar sign &#8220;$&#8221; on one of your variables. Hope this [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across this error the other day while setting up a nested foreach loop. When looking at the error logs all I found was expecting T_PAAMAYIM_NEKUDOTAYIM. Which was not very helpful. If you find that you have this error, try looking for a missing dollar sign &#8220;$&#8221; on one of your variables.</p>
<p>Hope this helps, happy coding!</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+error%3A+expecting+T_PAAMAYIM_NEKUDOTAYIM+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D340" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=PHP+error%3A+expecting+T_PAAMAYIM_NEKUDOTAYIM+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D340" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2010/05/php-error-expecting-t_paamayim_nekudotayim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embedded Related Entries</title>
		<link>http://blog.sidewaysgravity.com/2009/09/embedded-related-entries/</link>
		<comments>http://blog.sidewaysgravity.com/2009/09/embedded-related-entries/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 22:10:03 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Expression Engine]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=330</guid>
		<description><![CDATA[I came across the problem the other day of how to show a related entry of a reverse related entry of my entry. Confused? Imagine the following scenerio: You have two separate weblogs, A and B. Each has several entries and are related to each other through a third weblog C. The weblog C holds [...]]]></description>
			<content:encoded><![CDATA[<p>I came across the problem the other day of how to show a related entry of a reverse related entry of my entry. Confused? Imagine the following scenerio:</p>
<p>You have two separate weblogs, A and B. Each has several entries and are related to each other through a third weblog C. The weblog C holds all the relations and weblog A and B do not have any relations. This means that there can be many entries in C which point to A, and many entries in C that point to B. Still confused? Here is a real world example.</p>
<p>You have several lawyers who practice in a variety of practice areas but not necessarily all areas. The same relation is true for practice areas, where on area can have several attorneys but maybe not all. Each attorney has a statement about his expertise in the practice areas they serve in. In this example, the Lawyer is held in weblog A, the practice area in B and the statement of expertise in weblog C.</p>
<p>Now, lets say you would like to have an Lawyer page for a specific lawyer in weblog A, and you would like to list out all the practice areas (B) on the lawyers page. Because there is no direct relation between A and B you must use the relation between A &#8211; C and then the relation from C &#8211; B to get the final relation of A &#8211; B. To do this you must use a nested related entry in a reverse related entry for the entry of the Lawyer.</p>
<p>Unfortunately, expression engine does not allow nested related items on a page directly. So to make this work, you must use an embed to make the nesting work. Here is the code for the lawyer page:</p>
<blockquote><p>{reverse_related_entries orderby=&#8221;title&#8221;}<br />
&lt;div class=&#8221;entry&#8221;&gt;<br />
{embed=&#8221;site/attorney_link&#8221; entry_id=&#8221;{entry_id}&#8221;}<br />
&lt;h3&gt;{title} &#8211; {attorney}&lt;/h3&gt;<br />
&lt;p&gt;{about_bio}&lt;/p&gt;<br />
&lt;/div&gt;<br />
{/reverse_related_entries}</p></blockquote>
<p>All of the above code would be held inside the {weblog:entries} tag for the specific lawyer. Now the code for the embedded file:</p>
<blockquote><p>{exp:weblog:entries dynamic=&#8221;off&#8221; entry_id=&#8221;{embed:entry_id}&#8221;}<br />
{related_entries id=&#8221;attorney&#8221;}&lt;h4&gt;&lt;a href=&#8221;{url_title_path=&#8221;attorney&#8221;}&#8221;&gt;{title}&lt;/a&gt;&lt;/h4&gt;{/related_entries} {/exp:weblog:entries}</p></blockquote>
<p>The key to making the nested related entry work, is to use the embed method. This allows you to send the entry id of the outer reverse related into a separate page. On the new page, you can do a normal exp:weblog call searching for only that id that was passed through. This will then give you access to the post in the intermediary blog (C) and allow you to call a related entry for either A or B.</p>
<p>If you are still confused after reading this, send me a comment and maybe I can clarify a little further. While this may not be something you use everyday, it definitely can come in handy.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Embedded+Related+Entries+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D330" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Embedded+Related+Entries+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D330" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2009/09/embedded-related-entries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting A default image with PHPThumb</title>
		<link>http://blog.sidewaysgravity.com/2009/08/setting-a-default-image-with-phpthumb/</link>
		<comments>http://blog.sidewaysgravity.com/2009/08/setting-a-default-image-with-phpthumb/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 03:26:38 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpThumb]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=311</guid>
		<description><![CDATA[For one of the larger projects that I work on, I use phpThumb, which will create a thumbnail of the requested image and cache it for fast downloads. This is great when you have a large number of images that will be viewed at various sizes and you dont want to export all the various [...]]]></description>
			<content:encoded><![CDATA[<p>For one of the larger projects that I work on, I use phpThumb, which will create a thumbnail of the requested image and cache it for fast downloads. This is great when you have a large number of images that will be viewed at various sizes and you dont want to export all the various sizes.</p>
<p>One of the problems I ran into recently is setting a default image that will appear if for some reason your source file cannot be located. When you are pulling images from a separate provider, this can become a concern.</p>
<p>PhpThumb has made this easy as their is a setting in the config file as shown below.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-312" title="phpthumbconfig" src="http://blog.sidewaysgravity.com/wp-content/uploads/2009/08/phpthumbconfig.png" alt="phpthumbconfig" width="436" height="95" /></p>
<p>All you have to do is add the local path to the file you want as a default into the config and then to test it you can set phpThumb to attempt to load a bad source file and it should display your image. If you are having issues seeing the file, make sure that the names match up, and that you have a forward slash before the path. You can also try doing an absolute path with the entire url to the image.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Setting+A+default+image+with+PHPThumb+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D311" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Setting+A+default+image+with+PHPThumb+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D311" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2009/08/setting-a-default-image-with-phpthumb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another Playstation Error (8002AB0B)</title>
		<link>http://blog.sidewaysgravity.com/2009/06/another-playstation-error-8002ab0b/</link>
		<comments>http://blog.sidewaysgravity.com/2009/06/another-playstation-error-8002ab0b/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 23:00:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[Ps3]]></category>
		<category><![CDATA[psn]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=303</guid>
		<description><![CDATA[Yet another error message today, this time when trying to send a message to a friend. I first received the message when I tried to reply to a message received. So I canceled out of the message, repeated the process and got the same error message, repeated and got it again for a third time. [...]]]></description>
			<content:encoded><![CDATA[<p>Yet another error message today, this time when trying to send a message to a friend. I first received the message when I tried to reply to a message received. So I canceled out of the message, repeated the process and got the same error message, repeated and got it again for a third time. So I changed what I typed and it went through without a problem. So I tried one last time with the original message and the error came up once more. Maybe it was something I was writing? &#8220;what u doing ?&#8221; hardly seems like a message to cause problems. The message that did work: &#8220;hi&#8221;. </p>
<p>After a quick look online I found that some other people were having the same error. They recommended removing the punctuation from the end of the message, and sure enough it worked. To further test this I tried to send another message, &#8220;what u playing ?&#8221; and once again I got the error message. </p>
<p>To narrow the problem down this is what I think causes the issue. It is not the fact that there is a punctuation at the end of the message. But it is due to there being a space and then the punctuation by itself. &#8220;_?&#8221; When I remove the space the same message sends without a problem. So you might ask, why is there a space in the first place? When using the prediction that is to the right of the keyboard it will always put a space after the word to prepare for the next. So if your whole message is predicted&#8230; what u doing&#8230; then it will put a space after &#8220;doing&#8221;. If you don&#8217;t remove the space [square on the controller] before you put the punctuation then it will cause an error.</p>
<blockquote><p>Update: So I have refined the problem a little further, it is not the fact that there is a space between the last word and a punctuation, but it is due to there being a space between the last work and a punctuation when the space was created due to the word predictor. If you put in a space your self, then it does not trigger the error. But if you use the word predictor and then a punctuation without removing the space, like clock work the error comes up.</p></blockquote>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Another+Playstation+Error+%288002AB0B%29+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D303" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Another+Playstation+Error+%288002AB0B%29+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D303" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2009/06/another-playstation-error-8002ab0b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing your default homepage</title>
		<link>http://blog.sidewaysgravity.com/2009/04/changing-your-default-homepage/</link>
		<comments>http://blog.sidewaysgravity.com/2009/04/changing-your-default-homepage/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 02:38:32 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=299</guid>
		<description><![CDATA[There is a quick and simple way that you can change the default page that is loaded when you open up a website. For almost every server, the default value is to first look for the index file. On my server it will first look for an index.php file, if that is not found, it [...]]]></description>
			<content:encoded><![CDATA[<p>There is a quick and simple way that you can change the default page that is loaded when you open up a website. For almost every server, the default value is to first look for the index file. On my server it will first look for an index.php file, if that is not found, it will then look for the index.html file and if neither are found, it will just say page cannot be found, or something to that effect.</p>
<p>If you want to change those settings, your can do it with the server files&#8230; or a much easier way, especially for a temp page during website construction is to define the default file within the .htaccess file.</p>
<p>Working with the .htaccess file can be tricky at times, depending on what you are wanting to accomplish, but luckily changing the default start page is simple. First you will need to create a .htaccess file within the root directory of you website. Likewise you can create one inside subfolders, and change the default page for a subfolder as well.</p>
<p>Once you have your file created, you must add the following code.</p>
<p><code>DirectoryIndex filename.html index.cgi index.pl default.htm</code></p>
<p>Within this code is where you can specify what you want the default page to be. If you only want one option, just specify one file. If you want multiple options as listed, this will first check for the &#8220;filename.html&#8221; and if not found it will then check the next file &#8220;index.cgi&#8221; and so on. Upload that .htaccess file to your server and your in business.</p>
<p>I should clarify that this is for a server with an apache web server, usually that is a linux server.</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Changing+your+default+homepage+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D299" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Changing+your+default+homepage+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D299" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2009/04/changing-your-default-homepage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EE Users post with status Closed</title>
		<link>http://blog.sidewaysgravity.com/2009/04/ee-users-post-with-status-closed/</link>
		<comments>http://blog.sidewaysgravity.com/2009/04/ee-users-post-with-status-closed/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 05:38:50 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Ramblings]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[ee]]></category>
		<category><![CDATA[expression engine]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.sidewaysgravity.com/?p=293</guid>
		<description><![CDATA[I recently had a problem where all the users added to expression engine would post to weblogs with a closed status and they did not have the option to change it to open even though they had permissions to do so. It took me a while to figure this one out, but like many things [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a problem where all the users added to expression engine would post to weblogs with a closed status and they did not have the option to change it to open even though they had permissions to do so. It took me a while to figure this one out, but like many things with expression engine, I have found that their are simple solutions to almost all of the issues that I have found, it was just a matter of finding the solutions.</p>
<p>If your having problems with other members publishing as closed status and cant figure out why, try checking the following setting. Select publish and then edit weblogs. For the weblog that you are having problems with, and this could be all of them, you will need to select to edit groups, and from there you will need to make sure that the default option is NOT None, but set to either the Default Status Group or a custom one.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-294" title="Default Status Group" src="http://blog.sidewaysgravity.com/wp-content/uploads/2009/04/picture-11.png" alt="Default Status Group" width="398" height="200" /></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=EE+Users+post+with+status+Closed+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D293" title="Post to Twitter"><img class="nothumb" src="http://blog.sidewaysgravity.com/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=EE+Users+post+with+status+Closed+http%3A%2F%2Fblog.sidewaysgravity.com%2F%3Fp%3D293" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://blog.sidewaysgravity.com/2009/04/ee-users-post-with-status-closed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

