<?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>29FIVE Designs Blog</title>
	<atom:link href="http://blog.29fivedesigns.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.29fivedesigns.com</link>
	<description>imagine... create... innovate.</description>
	<lastBuildDate>Mon, 19 Sep 2011 00:02:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>mod_rewrite With GoDaddy 4GH Hosting</title>
		<link>http://blog.29fivedesigns.com/2011/04/mod_rewrite-with-godaddy-4gh-hosting/</link>
		<comments>http://blog.29fivedesigns.com/2011/04/mod_rewrite-with-godaddy-4gh-hosting/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 22:17:25 +0000</pubDate>
		<dc:creator>nlapp</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[4GH Hosting]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://blog.29fivedesigns.com/?p=73</guid>
		<description><![CDATA[29FIVE Designs recently upgraded all of our hosting to GoDaddy&#8217;s new 4GH cluster hosting. We immediately noticed a significant performance improvement in all our sites due to the cluster style web hosting. However, all of our PHP URL masks achieved via Apache&#8217;s mod_rewrite in htaccess broke. After about four days of support calls with GoDaddy [...]]]></description>
				<content:encoded><![CDATA[<p>29FIVE Designs recently upgraded all of our hosting to GoDaddy&#8217;s new 4GH cluster hosting.  We immediately noticed a significant performance improvement in all our sites due to the cluster style web hosting.  However, all of our PHP URL masks achieved via Apache&#8217;s mod_rewrite in htaccess broke.  After about four days of support calls with GoDaddy and being told numerous different stories, it was finally confirmed to us that URL masking for PHP files is not globally enabled on the 4GH servers (although HTML masking is).  This is a change from their &#8220;legacy&#8221; hosting which had masking for both HTML and PHP enabled globally.</p>
<p>As GoDaddy does not provide scripting support, we were left with attempting to configure our htaccess files such that they would actually work with the 4GH hosting.  We were finally able to find the proper configuration and would like to share our findings with anyone who may be experiencing the same issue:</p>
<p><code><br />
Options FollowSymLinks<br />
Options -MultiViews<br />
RewriteEngine On</p>
<p>RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteCond %{REQUEST_FILENAME}\.php -f<br />
RewriteRule ^(.*)$ $1.php<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.29fivedesigns.com/2011/04/mod_rewrite-with-godaddy-4gh-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Static IP</title>
		<link>http://blog.29fivedesigns.com/2011/02/ubuntustatic-ip/</link>
		<comments>http://blog.29fivedesigns.com/2011/02/ubuntustatic-ip/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 19:30:03 +0000</pubDate>
		<dc:creator>nlapp</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Static IP]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.29fivedesigns.com/?p=64</guid>
		<description><![CDATA[Set Static IP sudo nano /etc/network/interfaces Set the following in the file:auto eth0 iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.2.1 Restart networkingsudo /etc/init.d/networking restart Set DHCP sudo nano /etc/network/interfaces Set the following in the file:auto eth0 iface eth0 inet dhcp Restart networkingsudo /etc/init.d/networking restart]]></description>
				<content:encoded><![CDATA[<p><strong>Set Static IP</strong></p>
<ol>
<li><code>sudo nano /etc/network/interfaces</code></li>
<li>Set the following in the file:<br /><code>auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.10<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.2.1<br />
</code></li>
<li>Restart networking<br /><code>sudo /etc/init.d/networking restart</code></li>
</ol>
<p><strong>Set DHCP</strong></p>
<ol>
<li><code>sudo nano /etc/network/interfaces</code></li>
<li>Set the following in the file:<br /><code>auto eth0<br />
iface eth0 inet dhcp</code></li>
<li>Restart networking<br /><code>sudo /etc/init.d/networking restart</code></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.29fivedesigns.com/2011/02/ubuntustatic-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Stored In MySQL Database</title>
		<link>http://blog.29fivedesigns.com/2010/11/php-stored-in-mysql-database/</link>
		<comments>http://blog.29fivedesigns.com/2010/11/php-stored-in-mysql-database/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 03:23:14 +0000</pubDate>
		<dc:creator>nlapp</dc:creator>
				<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[eval()]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.29fivedesigns.com/?p=41</guid>
		<description><![CDATA[Sometimes it&#8217;s helpful to store PHP code in a database and have it execute prior to displaying in the end user&#8217;s browser. This can easily be accomplished by using the PHP eval() function. Assuming the MySQL table appears as follows: This can be displayed in the browser by using the following PHP code: Which will [...]]]></description>
				<content:encoded><![CDATA[<p>Sometimes it&#8217;s helpful to store PHP code in a database and have it execute prior to displaying in the end user&#8217;s browser.  This can easily be accomplished by using the PHP <a href="http://php.net/manual/en/function.eval.php">eval()</a> function.</p>
<p>Assuming the MySQL table appears as follows:</p>
<pre class="brush: sql; title: ; notranslate">
+--------------+
|         code |
+--------------+
| Hello World! |
+--------------+
</pre>
<p>This can be displayed in the browser by using the following PHP code:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php echo $row_table['code']; ?&gt;</pre>
<p>Which will appear in the browser as follows: &#8220;Hello World!&#8221;</p>
<p>However, if the table contains mixed, PHP and HTML content, as follows:</p>
<pre class="brush: sql; title: ; notranslate">
+-----------------------------------------------------+
|                                                code |
+-----------------------------------------------------+
| &lt;p&gt;My PHP script: &lt;?php echo 'Hello World'; ?&gt;.&lt;/p&gt; |
+-----------------------------------------------------+
</pre>
<p>This can be displayed by using the following PHP code:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php eval('?&gt;'.$row_table['code'].'&lt;?php '); ?&gt;</pre>
<p>The browser will display &#8220;My PHP script: Hello World.&#8221;</p>
<p>This essentially tells the web server to execute the PHP code between the PHP tags and print the output along with the rest of the string not between the PHP tags.</p>
<p>If however, the MySQL field is storing only PHP code as follows:</p>
<pre class="brush: sql; title: ; notranslate">
+------------------------------------+
|                               code |
+------------------------------------+
| echo 'Three plus five is: '.3 + 5; |
+------------------------------------+
</pre>
<p>The eval() function may be used as follows:</p>
<pre class="brush: php; title: ; notranslate">&lt;?php eval($row_table['code']); ?&gt;</pre>
<p>The browser would display &#8220;Three plus five is: 8&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.29fivedesigns.com/2010/11/php-stored-in-mysql-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Distribution Lists</title>
		<link>http://blog.29fivedesigns.com/2010/10/multiple-distribution-lists/</link>
		<comments>http://blog.29fivedesigns.com/2010/10/multiple-distribution-lists/#comments</comments>
		<pubDate>Sat, 23 Oct 2010 00:49:25 +0000</pubDate>
		<dc:creator>nlapp</dc:creator>
				<category><![CDATA[Omega Fraternal]]></category>
		<category><![CDATA[Fraternity]]></category>
		<category><![CDATA[Greek]]></category>
		<category><![CDATA[Sorority]]></category>

		<guid isPermaLink="false">http://blog.29fivedesigns.com/?p=36</guid>
		<description><![CDATA[Omega Fraternal released improved email distribution list management today. Chapters are now able to manage multiple email distribution lists to fine tune communication to members. Omega Fraternal still has the ability to manage your main distribution list as well as auto-joining new members to the default list. For those discretionary lists however, membership administrators can [...]]]></description>
				<content:encoded><![CDATA[<p>Omega Fraternal released improved email distribution list management today. Chapters are now able to manage multiple email distribution lists to fine tune communication to members.</p>
<p>Omega Fraternal still has the ability to manage your main distribution list as well as auto-joining new members to the default list. For those discretionary lists however, membership administrators can specify which distribution lists each member is a subscriber to.</p>
<p>From the front-end interface, members can view all of the distribution lists the Chapter utilizes and who is a subscriber to each list.</p>
<p>Just as before, when a membership manager or a member updates an email address, that changes is automatically rippled and reflected throughout all of the distribution lists.</p>
<p>We&#8217;re really excited about this release because this is just another small step in making Omega Fraternal the premier fraternity and sorority management system.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.29fivedesigns.com/2010/10/multiple-distribution-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Twitter Feed</title>
		<link>http://blog.29fivedesigns.com/2010/10/php-twitter-feed/</link>
		<comments>http://blog.29fivedesigns.com/2010/10/php-twitter-feed/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 00:41:05 +0000</pubDate>
		<dc:creator>nlapp</dc:creator>
				<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://blog.29fivedesigns.com/?p=4</guid>
		<description><![CDATA[Here are two simple functions to display Twitter feeds on your website using PHP. The twitter_feed() function pulls the feed from Twitter RSS and returns it as a variable. This function also stores the feed in a database where it can be called in cases where the Twitter RSS feed is unavailable. The twitter_time() function [...]]]></description>
				<content:encoded><![CDATA[<p>Here are two simple functions to display Twitter feeds on your website using PHP. The twitter_feed() function pulls the feed from Twitter RSS and returns it as a variable. This function also stores the feed in a database where it can be called in cases where the Twitter RSS feed is unavailable.</p>
<pre class="brush: php; title: ; notranslate">//Twitter Feed
function twitter_feed($username, $rss) {
  $hostname_connection = &quot;db_hostname&quot;;
  $database_connection = &quot;db_database&quot;;
  $username_connection = &quot;db_username&quot;;
  $password_connection = &quot;db_password&quot;;
  $connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection) or die(mysql_error());
  
  $twitter_feed = '&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tr&gt;&lt;td class=&quot;content_twitter&quot; valign=&quot;baseline&quot;&gt;&lt;a href=&quot;http://twitter.com/'.$username.'&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;twitter-follow-me.png&quot; alt=&quot;Twitter&quot; border=&quot;0&quot; align=&quot;right&quot;&gt;&lt;/a&gt;';
  
  $feedURL = $rss;
  $doc = new DOMDocument();
  if($doc-&gt;load($feedURL)) {
    $arrFeeds = array();
    foreach ($doc-&gt;getElementsByTagName('item') as $node) {
      $itemRSS = array ( 
        'title' =&gt; $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue,
        'pubDate' =&gt; $node-&gt;getElementsByTagName('pubDate')-&gt;item(0)-&gt;nodeValue
      );
      array_push($arrFeeds, $itemRSS);
    }
    
    $limit = 5;
    for($x=0; $x&lt;$limit; $x++) {
      $title = str_replace('bavotasan: ', '', $arrFeeds[$x]['title']);
      $string = ereg_replace(&quot;[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]&quot;,&quot;&lt;a class=\&quot;twitter_link\&quot; href=\&quot;\&#92;&#48;\&quot; target=\&quot;_blank\&quot;&gt;\&#92;&#48;&lt;/a&gt;&quot;, $title); 
      $pattern = '/[#|@][^\s]*/';
      preg_match_all($pattern, $string, $matches);    
      
      foreach($matches[0] as $keyword) {
        $keyword = str_replace(&quot;)&quot;, &quot;&quot;, $keyword);
        $link = str_replace(&quot;#&quot;, &quot;%23&quot;, $keyword);
        $link = str_replace(&quot;@&quot;, &quot;&quot;, $keyword);
        if(strstr($keyword, &quot;@&quot;)) {
          $search = '&lt;a href=&quot;http://twitter.com/'.$link.'&quot; target=&quot;_blank&quot;&gt;'.$keyword.'&lt;/a&gt;';
        }
        else {
          $link = urlencode($link);
          $search = '&lt;a href=&quot;http://twitter.com/#search?q='.$link.'&quot; target=&quot;_blank&quot;&gt;'.$keyword.'&lt;/a&gt;';
        }
        $string = str_replace($keyword, $search, $string);
      }
      $length = strlen($string);
      $string = substr($string, 15, $length);
      $twitter_feed .= '&lt;a href=&quot;http://twitter.com/'.$username.'&quot; target=&quot;_blank&quot;&gt;@'.$username.'&lt;/a&gt;: '.$string.'&lt;div class=&quot;twitter_time&quot;&gt;'.twitter_time($arrFeeds[$x]['pubDate']).' via Twitter&lt;/div&gt;&lt;br /&gt;';
    }
    
    $twitter_feed .= '&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align=&quot;right&quot;&gt;&lt;a href=&quot;http://twitter.com/'.$username.'&quot; target=&quot;_blank&quot;&gt;..::Follow Us!&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;';
    
    $updateSQL = sprintf('UPDATE twitter SET details=&quot;'.$twitter_feed.'&quot; WHERE account=&quot;'.$username.'&quot;');

    mysql_select_db($database_connection, $connection);
    mysql_query($updateSQL, $connection) or die(mysql_error());
  }
  
  else {
    mysql_select_db($database_connection, $connection);
    $query_twitter = sprintf('SELECT * FROM twitter WHERE account = &quot;'.$username.'&quot;');
    $twitter = mysql_query($query_twitter, $connection) or die(mysql_error());
    $row_twitter = mysql_fetch_assoc($twitter);
    $totalRows_twitter = mysql_num_rows($twitter);
    
    $twitter_feed = $row_twitter['details'];
  }
  
  return $twitter_feed;
}
</pre>
<p>The twitter_time() function takes the RSS time and converts it to human readable current server time.</p>
<pre class="brush: php; title: ; notranslate">
//Twitter Time
function twitter_time($rss_time) {
  $time = date('Hm', strtotime($rss_time));
  $date = date('m/d/Y', strtotime($rss_time));
  
  if($date == system_date()) {
    if(system_time() - $time &lt; 60) {
      $time_result = system_time() - $time;
      if($time_result &lt;= 1) {$time_display = 'about a minute ago';}
      else {$time_display = $time_result.' minutes ago';}
    }
    else {
      $time_result = round(((system_time() - $time) / 60), 0);
      if($time_result == 1) {$time_display = 'about '.$time_result.' hour ago';}
      else {$time_display = 'about '.$time_result.' hours ago';}
    }
  }
  else {
    $time_result = date_difference($date, system_date());
    if($time_result == 1) {$time_display = $time_result.' day ago';}
    else {$time_display = $time_result.' days ago';}

    if($time_result &gt; 7) {
      $date_explode = explode('/', $date);
      if($date_explode[2] == date('Y')) {
        $time = date('g:i A', strtotime($time));
        $date = date('M jS', mktime('00', '00', '00', $date_explode[0], $date_explode[1], $date_explode[2]));
        $time_display = $time.' '.$date;
      }
      else {
        $time = date('g:i A', strtotime($time));
        $date = date('M jS, Y', mktime('00', '00', '00', $date_explode[0], $date_explode[1], $date_explode[2]));
        $time_display = $time.' '.$date;
      }
    }
  }
  
  return $time_display;
}
</pre>
<p>Usage:</p>
<pre class="brush: php; title: ; notranslate">
echo twitter_feed('your Twitter username', 'the URL to your Twitter RSS feed page');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.29fivedesigns.com/2010/10/php-twitter-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
