<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><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>byteMyCode: Snippets for the inxilpro</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this member.</description>
		<pubDate>Sun, 12 Oct 2008 22:14:44 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>URL Regular Expression</title>
	<link>http://www.bytemycode.com/snippets/snippet/796/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/796/comments/</comments>
	<pubDate>Thu, 28 Feb 2008 16:10:58 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>"Regular, Expression", regex, RegExp</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/796/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Feb. 28th, 2008  4:10 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/796/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22Regular">"Regular</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Expression%22">Expression"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/796/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>This is as close to a perfect URL regular expression as I've come.  It's based on <a href='http://www.ietf.org/rfc/rfc3986.txt' target="_blank">RFC 3986</a>.<br /><br /><b>A few caveats:</b><br /><br />It only accepts http/https/ftp URLs by design, but you could change that to accept any valid URI pretty easily.<br /><br />It doesn't support IP-based URLs or authenticated URLs.  This is also by design, but you could change that with a little work.</p>
		]]>
	</description>
</item><item>
	<title>Generate Random Alphanumeric ID</title>
	<link>http://www.bytemycode.com/snippets/snippet/579/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/579/comments/</comments>
	<pubDate>Fri, 19 Jan 2007 15:19:03 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>alphanumeric, Generate, Generator, ID, Random</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/579/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jan. 19th, 2007  3:19 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/579/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/alphanumeric">alphanumeric</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Generate">Generate</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Generator">Generator</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/ID">ID</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Random">Random</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/579/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>This is a simple script to generate a random alphanumeric string.</p>
		]]>
	</description>
</item><item>
	<title>Random Password Generator (based on word list)</title>
	<link>http://www.bytemycode.com/snippets/snippet/578/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/578/comments/</comments>
	<pubDate>Fri, 19 Jan 2007 14:37:55 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>"word list", Generator, Password, PHP, Random</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/578/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jan. 19th, 2007  2:37 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/578/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22word+list%22">"word list"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Generator">Generator</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Password">Password</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Random">Random</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/578/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>This is a random password generator that produces understandable passwords based on word lists.  I've only included a 3 entry world list because you should chose a list based on your password requirements and your users.  If you need to generate passwords that are 14 characters in length, you will want a different list than if you're generating 8 character passwords.  And depending on your users, you may want to use certain lists.  The list I use is about 4000 words that are 5-7 characters long, all well-known words that have had potentially objectionable content removed.  For security reasons I don't want to include this list.<br /><br />A note on security: though this generates relatively strong passwords for the average user, they are particularly susceptible to brute-force attacks.  This is even more an issue if somehow your word list gets compromised.  I would not recommend using this function for anything where a highly secure password is needed.<br /><br />A note on choosing your list: You'll also see that I've built the system to avoid generating passwords with zeros and ones in them.  This is because zero and upper-case "o" can be confused as can one, lower-case "L" and upper-case "i."  When choosing my word list I was also sure to strip out all words that start with the letter "o" or "i" (to prevent the optional ucfirst() from creating 0/O and I/1 confusion) and words that contain the letter "L" (to prevent l/1 confusion).  I find that this greatly helps with preventing confusion, but again weakens the security of the passwords some.  It's your choice.</p>
		]]>
	</description>
</item><item>
	<title>Somewhat understandable random password generator</title>
	<link>http://www.bytemycode.com/snippets/snippet/449/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/449/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 22:39:32 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>"Random Generation", Generator, Password, PHP, Random</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/449/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  10:39 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/449/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22Random+Generation%22">"Random Generation"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Generator">Generator</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Password">Password</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Random">Random</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/449/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 19
			<p>This function creates relatively secure random passwords.  It's by no means ideal, but it should work in most non-critical situations.  The nice thing is the generator attempts to create passwords that people can pronounce and chooses letters that won't be mistaken for others (such as the numeral "1", an upper-case "i" and a lower-case "L").  To keep the code short much of this functionality is very rudimentary, but it's better than nothing.</p>
		]]>
	</description>
</item><item>
	<title>csv2xml</title>
	<link>http://www.bytemycode.com/snippets/snippet/448/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/448/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 21:57:33 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>Convert, CSV, PHP, XML</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/448/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  9:57 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/448/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Convert">Convert</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/CSV">CSV</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/XML">XML</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/448/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 15
			<p>This function converts a CSV file to a simple XML file.</p>
		]]>
	</description>
</item><item>
	<title>Simple PHP DB Classes</title>
	<link>http://www.bytemycode.com/snippets/snippet/446/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/446/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 15:13:59 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>classes, Database, DB, PHP, Simple</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/446/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  3:13 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/446/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/classes">classes</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Database">Database</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/DB">DB</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Simple">Simple</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/446/comments/">5 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 15
			<p>This is a bare-bones DB connectivity class.  It's really just meant to abstract a few basic mysql_ functions so that if you ever have to change DBs you don't have to change every database function call.<br /><br />I really just threw this together on a whim with no testing what-so-ever.  Also, it only abstracts the <b>most basic</b> MySQL functions--this is intentional; please expand it as you see fit.</p>
		]]>
	</description>
</item><item>
	<title>PHP Debug Function</title>
	<link>http://www.bytemycode.com/snippets/snippet/441/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/441/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 10:09:42 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>debug, HTML, PHP, Variable</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/441/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  10:09 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/441/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/debug">debug</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/HTML">HTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Variable">Variable</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/441/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>Here's a basic function for debugging any kind of PHP variable.  It allows for "invisible" or "visible" output--that is output in HTML comments or within visible HTML tags.  It also supports customizable "containers" which lets you easily edit the look of the visible and invisible blocks.  Examples in code below.</p>
		]]>
	</description>
</item>
	</channel>
</rss>