<?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>Grey Fuzz &#187; PHP Code</title>
	<atom:link href="http://www.greyfuzz.com/category/php-code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.greyfuzz.com</link>
	<description>Come get some!</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:04:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>php case change</title>
		<link>http://www.greyfuzz.com/2006/06/php-case-change</link>
		<comments>http://www.greyfuzz.com/2006/06/php-case-change#comments</comments>
		<pubDate>Thu, 22 Jun 2006 20:45:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[Webmaster / SEO]]></category>

		<guid isPermaLink="false">http://blog.captivereefing.com/2006/06/22/php-case-change/</guid>
		<description><![CDATA[This is available for PHP 3, PHP 4, &#038; PHP 5. strtoupper &#8212; Make a string uppercase Description string strtoupper ( string ) Returns string with all alphabetic characters converted to uppercase. Note that &#8216;alphabetic&#8217; is determined by the current locale. For instance, in the default &#8220;C&#8221; locale characters such as umlaut-a (ä) will not [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.greyfuzz.com/2006/06/php-case-change";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "php+case+change";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>This is available for PHP 3, PHP 4, &#038; PHP 5.</p>
<p>strtoupper &#8212; Make a string uppercase</p>
<p>Description<br />
string strtoupper ( string )</p>
<p>Returns string with all alphabetic characters converted to uppercase.</p>
<p>Note that &#8216;alphabetic&#8217; is determined by the current locale. For instance, in the default &#8220;C&#8221; locale characters such as umlaut-a (ä) will not be converted.</p>
<p>Example 1. strtoupper() example<br />
[code]<br />
<?php<br />
$string = "This is a test of the Emergency Broadcasting system...";<br />
$string = strtoupper($string);<br />
echo $string;  // echos - THIS IS A TEST OF THE EMERGENCY BROADCASTING SYSTEM...<br />
[/code]</p>
<p>    Note: This function is binary-safe.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greyfuzz.com/2006/06/php-case-change/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php includes</title>
		<link>http://www.greyfuzz.com/2006/05/php-includes</link>
		<comments>http://www.greyfuzz.com/2006/05/php-includes#comments</comments>
		<pubDate>Mon, 01 May 2006 16:46:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://blog.captivereefing.com/2006/05/01/php-includes/</guid>
		<description><![CDATA[php includes &#8211; rather than rewrite several lines of code for each page, for example adding a standardized header (or footer) to hundreds of pages, using a php include can save a lot of effort, especially when it comes time that you want to make universal changes across your site&#8230;.. edit one file ie&#8230; header.php [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.greyfuzz.com/2006/05/php-includes";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "php+includes";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>php includes &#8211; rather than rewrite several lines of code for each page, for example adding a standardized header (or footer) to hundreds of pages, using a php include can save a lot of effort, especially when it comes time that you want to make universal changes across your site&#8230;.. edit one file ie&#8230; header.php and every page calling for it&#8217;s header from this file is changed in single shot.</p>
<p>[code]<br />
< ? include("header.php") ?><br />
[/code]</p>
<p>There are as many uses for using includes as you can imagine, populating a set list of variables, database connection strings&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greyfuzz.com/2006/05/php-includes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create mysql database using PHP</title>
		<link>http://www.greyfuzz.com/2006/04/create-mysql-database-using-php</link>
		<comments>http://www.greyfuzz.com/2006/04/create-mysql-database-using-php#comments</comments>
		<pubDate>Tue, 25 Apr 2006 16:09:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://blog.captivereefing.com/2006/04/25/create-mysql-database-using-php/</guid>
		<description><![CDATA[Simple code to use php to create a database for you. [code] < ?php // set your infomation. $dbhost='localhost'; $dbusername='username'; $dbuserpass='mypassword'; $dbname='test'; // connect to the mysql database server. $link_id = mysql_connect ($dbhost, $dbusername, $dbuserpass); echo "success in database connection."; // create the database. $dbname=$dbusername."_".$dbname; if (!mysql_query("CREATE DATABASE $dbname")) die(mysql_error()); echo "success in database creation."; [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.greyfuzz.com/2006/04/create-mysql-database-using-php";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Create+mysql+database+using+PHP";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Simple code to use php to create a database for you.</p>
<p>[code]<br />
< ?php</p>
<p>// set your infomation.<br />
$dbhost='localhost';<br />
$dbusername='username';<br />
$dbuserpass='mypassword';<br />
$dbname='test';</p>
<p>// connect to the mysql database server.<br />
$link_id = mysql_connect ($dbhost, $dbusername, $dbuserpass);<br />
echo "success in database connection.";</p>
<p>// create the database.<br />
$dbname=$dbusername."_".$dbname;<br />
if (!mysql_query("CREATE DATABASE $dbname")) die(mysql_error());<br />
echo "success in database creation.";</p>
<p>?><br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greyfuzz.com/2006/04/create-mysql-database-using-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get file last modified timestamp</title>
		<link>http://www.greyfuzz.com/2006/04/get-file-last-modified-timestamp</link>
		<comments>http://www.greyfuzz.com/2006/04/get-file-last-modified-timestamp#comments</comments>
		<pubDate>Sat, 22 Apr 2006 01:04:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://blog.captivereefing.com/2006/04/21/get-file-last-modified-timestamp/</guid>
		<description><![CDATA[Retrieving last modified timestamp for a file [code] < ?php //set path/filename or passed from form argument $filename = '/path/filename.dat'; // checks that the file actually exists and queries the last modified timestamp if (file_exists($filename)) { echo "$filename exists"; echo " last timestamp: " . date("d-m-y", filemtime($filename)); } else { echo "$filename does not exist"; [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.greyfuzz.com/2006/04/get-file-last-modified-timestamp";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Get+file+last+modified+timestamp";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Retrieving last modified timestamp for a file</p>
<p>[code]<br />
< ?php<br />
//set path/filename or passed from form argument<br />
$filename = '/path/filename.dat';<br />
// checks that the file actually exists and queries the last modified timestamp<br />
if (file_exists($filename)) {<br />
        echo "$filename exists";<br />
        echo " last timestamp: " . date("d-m-y", filemtime($filename));<br />
} else {<br />
        echo "$filename does not exist";<br />
}<br />
?><br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greyfuzz.com/2006/04/get-file-last-modified-timestamp/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Touching a file using PHP</title>
		<link>http://www.greyfuzz.com/2006/04/touching-a-file-using-php</link>
		<comments>http://www.greyfuzz.com/2006/04/touching-a-file-using-php#comments</comments>
		<pubDate>Sat, 22 Apr 2006 01:00:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://blog.captivereefing.com/2006/04/21/touching-a-file-using-php/</guid>
		<description><![CDATA[Using php to create or touch a file, first checks to see if it already exists. [code] < ?php //set the filename or passed from form argument $filename = "/path/filenane.ext"; //does the file exist? if (!file_exists($filename)) { //create the filename touch($filename); //set permissions chmod($filename,666); } ?> [/code]]]></description>
			<content:encoded><![CDATA[<div style="float: right; width: 42px; padding-right: 10px; margin: 0 0 0 10px;">
		<script type="text/javascript">
		<!--
		digg_url = "http://www.greyfuzz.com/2006/04/touching-a-file-using-php";
		digg_bgcolor = "";
		digg_skin = "";
		digg_window = "";
		digg_title = "Touching+a+file+using+PHP";
		digg_media = "";
		digg_topic = "";
		digg_bodytext = "";
		//-->
		</script>
		<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script></div><p>Using php to create or touch a file, first checks to see if it already exists.</p>
<p>[code]<br />
< ?php<br />
//set the filename or passed from form argument<br />
$filename = "/path/filenane.ext";<br />
//does the file exist?<br />
if (!file_exists($filename)) {<br />
//create the filename<br />
        touch($filename);<br />
//set permissions<br />
        chmod($filename,666);<br />
}<br />
?><br />
[/code]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.greyfuzz.com/2006/04/touching-a-file-using-php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
