<?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>BreeRadloff.com &#187; PHP</title>
	<atom:link href="http://www.breeradloff.com/category/articles/code/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.breeradloff.com</link>
	<description>Interactive &#38; UX Design</description>
	<lastBuildDate>Thu, 06 May 2010 03:53:46 +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>Random Quote PHP Script</title>
		<link>http://www.breeradloff.com/2009/01/random-quote-php-script/</link>
		<comments>http://www.breeradloff.com/2009/01/random-quote-php-script/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 13:51:46 +0000</pubDate>
		<dc:creator>Bree</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[random quote]]></category>
		<category><![CDATA[random text]]></category>

		<guid isPermaLink="false">http://www.breeradloff.com/?p=48</guid>
		<description><![CDATA[The script below displays a random string of text each time your page is loaded or refreshed. It is not the most fancy or flexible &#8211; but it is extremely simple and easy. This could prove useful if you are doing something with limited scope.

&#60;?php

function randomQuote() {

	$quotes[] = '"Quote goes here"';
	$quotes[] = '"Quote goes here"';
	$quotes[] [...]]]></description>
			<content:encoded><![CDATA[<p>The script below displays a random string of text each time your page is loaded or refreshed. It is not the most fancy or flexible &#8211; but it is extremely simple and easy. This could prove useful if you are doing something with limited scope.</p>
<p><span id="more-48"></span></p>
<pre>&lt;?php

function randomQuote() {

	$quotes[] = '"Quote goes here"';
	$quotes[] = '"Quote goes here"';
	$quotes[] = '"Quote goes here"';
	$quotes[] = '"Quote goes here"';

	srand ((double) microtime() * 1000000);
	$random_number = rand(0,count($quotes)-1);

	echo '&lt;p&gt;' . ($quotes[$random_number]) . '&lt;/p&gt;';
}
?&gt;</pre>
<p>Add as many quotes as you like, and you can add HTML and CSS between the quotes. For example, I wanted to provide a link (the author&#8217;s name) to more information about the quote or author.</p>
<pre>$quotes[] = '"The Quote"&lt;br /&gt;&amp;mdash; &lt;a href="URL"&gt;Author&lt;/a&gt;';</pre>
<p>To use this script on your site, include the file in your html document:</p>
<pre>&lt;?php include ("includes/quotes.php"); ?&gt;</pre>
<p>Then call the randomQuote function in the spot you want the quotes:</p>
<pre>&lt;?php randomQuote();?&gt;</pre>
<p>You can <a title="Random Quotes PHP Script . ZIP" href="http://www.bay70.com/files/code/php/randomQuotes.zip">download a zip file of this demo</a> if you prefer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.breeradloff.com/2009/01/random-quote-php-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Test Your Server&#8217;s PHP Mail</title>
		<link>http://www.breeradloff.com/2009/01/test-your-servers-php-mail/</link>
		<comments>http://www.breeradloff.com/2009/01/test-your-servers-php-mail/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 13:50:34 +0000</pubDate>
		<dc:creator>Bree</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.breeradloff.com/?p=46</guid>
		<description><![CDATA[Is your server&#8217;s PHP mail function enabled or disabled? Test it with this quick script. If you get an email, it works!

&#60;?php
     mail("username@domain.com", "Test Subject", "Test Message Body");
?&#62;
]]></description>
			<content:encoded><![CDATA[<p>Is your server&#8217;s PHP mail function enabled or disabled? Test it with this quick script. If you get an email, it works!</p>
<p><span id="more-46"></span></p>
<pre>&lt;?php
     mail("username@domain.com", "Test Subject", "Test Message Body");
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.breeradloff.com/2009/01/test-your-servers-php-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
