<?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>BenEskew.com &#187; PHP</title>
	<atom:link href="http://www.beneskew.com/category/web-development/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.beneskew.com</link>
	<description>Just another web developer&#039;s personal weblog.</description>
	<lastBuildDate>Wed, 23 Nov 2011 22:19:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Starting A Startup</title>
		<link>http://www.beneskew.com/2010/12/starting-a-startup/</link>
		<comments>http://www.beneskew.com/2010/12/starting-a-startup/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 07:40:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.beneskew.com/?p=252</guid>
		<description><![CDATA[So here we are. We have an idea. We want to see this idea come to life and be able to live and breathe with the rest of the monster ideas out there. But, how do we go about that? #1 Make sure the "idea" you have in mind is unique. I don't know how [...]]]></description>
			<content:encoded><![CDATA[<p>So here we are. We have an idea. We want to see this idea come to life and be able to live and breathe with the rest of the monster ideas out there. But, how do we go about that?</p>
<p><strong>#1 Make sure the "idea" you have in mind is unique.</strong><br />
I don't know how many times I've heard someone else's idea and thought to myself, "<em>Hmmm, I've already seen a website with that feature or concept.</em>" Research your niche, make sure it's unique enough to make a difference, then invest your time, efforts, and money if need be.</p>
<p><strong>#2 Implement the Idea into a public interface.</strong><br />
This, is possibly the toughest part of the bunch. Is your idea "<em>enterprise worthy</em>" or are you just testing the waters? What will your system require? Dynamic scripting language? Database? There's a lot of questions which need to be answered here.</p>
<p><strong>#3 Follow Through.</strong><br />
Make sure your idea is coming across to the masses as you like it to, otherwise this is the time to modify your idea to make it. This part can take some extreme aesthetic decisions to the software process area of your business model for your "idea."</p>
<p><strong>#4 Rinse and Repeat.</strong><br />
Repeat the steps above over, and over again. All the while paying attention to what works and what doesn't. And then implement sparingly to those respected areas to enhance their respective productivities.</p>
<p>In the very near future I'll be discussing in detail the above steps with a real-world example.</p>
<p>STAY TUNED!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.beneskew.com/2010/12/starting-a-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Old Technical Posts Archived, New Educational Hub Almost Ready for Beta</title>
		<link>http://www.beneskew.com/2010/10/old-technical-posts-archived-educational-hub-almost-ready/</link>
		<comments>http://www.beneskew.com/2010/10/old-technical-posts-archived-educational-hub-almost-ready/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 15:27:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ext JS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.beneskew.com/?p=244</guid>
		<description><![CDATA[So, I'm getting ready to release a new webmaster/web development/affiliate marketing educational hub website and have decided that I'll be posting a lot of educational information and tutorials about related topics there and need to make some room. In doing so I'll be discontinuing the updates of a few of my current websites (like KilerMedia.com [...]]]></description>
			<content:encoded><![CDATA[<p>So, I'm getting ready to release a new webmaster/web development/affiliate marketing educational hub website and have decided that I'll be posting a lot of educational information and tutorials about related topics there and need to make some room. In doing so I'll be discontinuing the updates of a few of my current websites (like KilerMedia.com which wasn't updated frequently at all anyways) and I'm archiving the relevant posts and info here. So, here they are:</p>
<ul>
<li><a href="http://www.kilermedia.com/2007/08/php-tip-using-the-ternary-operator/" target="_blank">PHP Tip: Using the Ternary Operator</a> - The ternary operator is your friend!</li>
<li><a href="http://www.kilermedia.com/2007/10/using-mysqls-rand-statement/" target="_blank">Using MySQL's rand() Statement</a> - Easily pull a random item from a table!</li>
<li><a href="http://www.kilermedia.com/2007/10/introduction-to-php-part-1-what-is-php/" target="_blank">Introduction To PHP: Part #1: What Is PHP?</a> - Need an introduction to the PHP scripting language?</li>
<li><a href="http://www.kilermedia.com/2007/11/why-cookies-are-better-than-sessions/" target="_blank">Why Cookies Are Better Than Sessions</a> - In my opinion, why browser cookies are better to use for user state management than PHP sessions.</li>
<li><a href="http://www.kilermedia.com/2007/11/folder-structuring-best-practices/" target="_blank">Folder Structuring Best Practices</a> - Organize your root better!</li>
<li><a href="http://www.kilermedia.com/2007/11/the-almost-perfect-smarty-setup/" target="_blank">The "Almost" Perfect Smarty Setup</a> - The Smarty templating engine is by far one of the best out there, and now you'll know how to use it perfectly.</li>
<li><a href="http://www.kilermedia.com/2008/03/some-mysql-for-the-brain/" target="_blank">Some MySQL For The Brain</a> - Good MySQL Tips and Tricks.</li>
<li><a href="http://www.kilermedia.com/2008/03/web-development-cheat-sheets/" target="_blank">Web Development Cheat Sheets</a> - Some very sweet cheat sheets.</li>
<li><a href="http://www.kilermedia.com/2008/12/ext-js-create-a-basic-login-form/" target="_blank">Ext JS: Create A Basic Login Form</a> - Create a really basic login form for your Ext JS application.</li>
<li><a href="http://www.kilermedia.com/2008/12/ext-js-adding-functionality-to-your-form/" target="_blank">Ext JS: Adding Functionality To Your Form</a> - How to add a bit of functionality to your Ext JS login form.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.beneskew.com/2010/10/old-technical-posts-archived-educational-hub-almost-ready/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The MS SQL and NTEXT Problem (SOLVED)</title>
		<link>http://www.beneskew.com/2010/08/the-ms-sql-and-ntext-problem-solved/</link>
		<comments>http://www.beneskew.com/2010/08/the-ms-sql-and-ntext-problem-solved/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 02:59:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.beneskew.com/?p=209</guid>
		<description><![CDATA[So, the other day I ran into the problem of trying to pull data from a field which was of type ntext in a MS SQL database using PHP. I'm fairly new with MS SQL and Windows IIS server environments for that matter so please bare with me. Well, I found the solution! When you're [...]]]></description>
			<content:encoded><![CDATA[<p>So, the other day I ran into the problem of trying to pull data from a field which was of type ntext in a MS SQL database using PHP. I'm fairly new with MS SQL and Windows IIS server environments for that matter so please bare with me. Well, I found the solution!</p>
<p>When you're using PHP's mssql_ functions and you need to pull data from a table field which is of type ntext you can't simply pull it using typical select methods, you need to cast the variable as another because <em>the ntext type is not supported in PHP's mssql_ functions</em>.</p>
<p>Code Which Wasn't Working:<br />
<code>$r = mssql_query("select ProductID, <strong>Description</strong> from myTable where id = '1'");</code></p>
<p>Solution:<br />
<code>$r = mssql_query("select ProductID, <strong>CAST(Description AS TEXT) AS Description</strong> from myTable where id = '1'");</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.beneskew.com/2010/08/the-ms-sql-and-ntext-problem-solved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Tips and Help</title>
		<link>http://www.beneskew.com/2009/11/php-tips-and-help/</link>
		<comments>http://www.beneskew.com/2009/11/php-tips-and-help/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 22:56:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.beneskew.com/?p=158</guid>
		<description><![CDATA[For those of you who do not know me personally or formally, here goes a bit of helpful information. I'm currently 30 years old and I've been learning and programming with PHP for a bit over 6 years. In these past six years I've basically taught myself the language using books, ebooks, and the Internet [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who do not know me personally or formally, here goes a bit of helpful information.</p>
<p>I'm currently 30 years old and I've been learning and programming with PHP for a bit over 6 years. In these past six years I've basically taught myself the language using books, ebooks, and the Internet as references and resources...and boy have I learned a lot. I wouldn't say that even at this point I am at an "Advanced" level of understanding/experience with PHP. I'd rather say that I'm around the "Intermediate" level of understanding with it. I know the true possibilities of PHP mingling with the other technologies, so I believe my "intermediate" rating for myself is almost even pushing it.</p>
<p>Anyways, here's some PHP tips I've picked up along the way or learned the hard way through trial and error experience. <img src='http://www.beneskew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>1. Single Quotes Are Faster Than Double Quotes (STRINGS)</h2>
<p>Irregardless of whatever rumor you've heard, utilizing single quotes when concatenating strings is much quicker execution-wise compared to using double quotes because when double quotes are used the PHP parser parses the string looking for string names to parse before returning the string.</p>
<p><b>Slower:</b><br /><code>echo "$name is its name.";</code></p>
<p><b>Faster:</b><br /><code>echo $name.' is its name.';</code></p>
<h2>2. Absolutely, Always Sanitize User Data (MySQL)</h2>
<p>The user of your web application is never to be trusted. Absolutely make sure to sanitize ALL incoming data from the User before interacting with it and your web databases.<br />
At the very least:</p>
<p><b>Utilize mysql(i)_real_escape_string (PHP4.3+)</b><br />
mysql_real_escape_string (earlier versions use mysql_escape_string) makes sure to add slashes for required elements, also making sure to combat many SQL injection attempts. You could also use other functions like strip_tags which further help sanitize and limit abuse of your User data.</p>
<p><b>Be Sure to Use htmlspecialchars and htmlentities (STRINGS)</b><br />
Be sure, when you print data which has been submitted by the User back to the screen that you properly sanitize that data using the PHP functions htmlspecialchars and/or htmlentities.</p>
<h2>3. The Ternary Operator Is Your Friend</h2>
<p>If you usually write a lot of if/else statements with very few lines of code or better yet one line of code, using the ternary operator can drastically help your application by shortening the lines of code down to one and also helping the readability of your code as a whole. Take the following example into consideration:</p>
<p><code>if($aString == '1'){<br />
&nbsp;&nbsp;&nbsp;$retVal = true;<br />
}else{<br />
&nbsp;&nbsp;&nbsp;$retVal = false;<br />
}<br />
</code><br />
Wouldn't you rather use the following instead?</p>
<p><code>$retVal = ($aString == '1') ? true : false;</code></p>
<h2>4. Regardless of their Rep, Don't Completely Follow Other Developers' Techniques</h2>
<p>You could completely disregard even me with this tip, but you really shouldn't follow other developers coding techniques without studying them yourself at least. I've learned this one the hard way by utilizing (embarrassingly) short if/then and conditional statements for a year or so without completely studying the side-effects of using said statements. Always make sure your chosen coding techniques are efficient and agile.</p>
<p>This is just a short list of tips and help I have to offer you about PHP. In the future I will continue this series of posts with even more tips and help with PHP so stay tuned! <img src='http://www.beneskew.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.beneskew.com/2009/11/php-tips-and-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

