<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>2:1 BSc in PHP, SEO and life!</title>
	<link>http://www.sdinternet.co.uk</link>
	<description>Trying to make sense of the online world.</description>
	<pubDate>Sun, 25 Nov 2007 18:19:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Don&#8217;t Use require() or include() to include dynamic pages from remote sources</title>
		<link>http://www.sdinternet.co.uk/post/dont-use-require-or-include-to-include-dynamic-pages-from-remote-sources/</link>
		<comments>http://www.sdinternet.co.uk/post/dont-use-require-or-include-to-include-dynamic-pages-from-remote-sources/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 09:40:31 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/post/dont-use-require-or-include-to-include-dynamic-pages-from-remote-sources/</guid>
		<description><![CDATA[I created a web statistics application a few years back, it was quite a big application and sometimes needed certain functionality on another server. To request this functionality I would use the PHP require() function to execute the remote file
require("http://www.remoteurl.com/generateStatsSummary.php?accountID=$ID&#38;useDate=2007-11-20");
Then a few days back the main server this application is hosted on got hacked into [...]]]></description>
			<content:encoded><![CDATA[<p>I created a web statistics application a few years back, it was quite a big application and sometimes needed certain functionality on another server. To request this functionality I would use the PHP require() function to execute the remote file</p>
<p class="phpcode">require("http://www.remoteurl.com/generateStatsSummary.php?accountID=$ID&amp;useDate=2007-11-20");</p>
<p>Then a few days back the main server this application is hosted on got hacked into and had to be rebuilt with new versions of MySQL and PHP installed. The application then  decided to stop working, in the end I worked out that the more recent versions of PHP don’t allow you to pass query strings to remote files using the require() or include() functions; you must use file_get_contents()  instead!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/dont-use-require-or-include-to-include-dynamic-pages-from-remote-sources/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Function: Email harvester</title>
		<link>http://www.sdinternet.co.uk/post/php-function-email-harvester/</link>
		<comments>http://www.sdinternet.co.uk/post/php-function-email-harvester/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 15:31:42 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/post/php-function-email-harvester/</guid>
		<description><![CDATA[Here is the PHP function I used to collect email addresses from my Outlook express sent items data file. You pass it text and it will return an array of all email addresses that are in the text. Enjoy!

function extract_emails_from($string){
preg_match_all("/[._a-zA-Z0-9-]+@[._a-zA-Z0-9-]+/i", $string, $matches);
return $matches[0];
}
]]></description>
			<content:encoded><![CDATA[<p>Here is the PHP function I used to collect email addresses from my Outlook express sent items data file. You pass it text and it will return an array of all email addresses that are in the text. Enjoy!</p>
<p class="phpcode">
function extract_emails_from($string){<br />
preg_match_all("/[._a-zA-Z0-9-]+@[._a-zA-Z0-9-]+/i", $string, $matches);<br />
return $matches[0];<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/php-function-email-harvester/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP Script: MySQL, database-wide engine modification</title>
		<link>http://www.sdinternet.co.uk/post/php-script-mysql-database-wide-engine-modification/</link>
		<comments>http://www.sdinternet.co.uk/post/php-script-mysql-database-wide-engine-modification/#comments</comments>
		<pubDate>Mon, 05 Nov 2007 13:23:59 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/post/php-script-mysql-database-wide-engine-modification/</guid>
		<description><![CDATA[2 large MySQL databases (3 gigabytes worth of data and 2,600 tables) somehow managed to corrupt last week and could not be repaired. It should have been a straight forward task for the outsourced Indian server administrators to restore a backup from a previous day but it wasn't!
In the end they managed to restore a [...]]]></description>
			<content:encoded><![CDATA[<p>2 large MySQL databases (3 gigabytes worth of data and 2,600 tables) somehow managed to corrupt last week and could not be repaired. It should have been a straight forward task for the outsourced Indian server administrators to restore a backup from a previous day but it wasn't!</p>
<p>In the end they managed to restore a backup of both databases but for some reason they restarted the MySQL server with skip-innodb, so rather than using the desired InnoDB storage engine the databases were restored using the MyISAM storage engine. The application that needs to use this database is a high usage web statistics application that cannot run using MyISAM without 20% of the tables corrupting every other day. So MyISAM just isn't acceptable.</p>
<p>You cannot just issue an alter database command and change the storage engine database-wide, the only option you have is alter table. With 2,600 tables that just isn't practical so I created a PHP script to change the engine type for all tables in a MySQL database. <a href="http://www.sdinternet.co.uk/post/php-script-mysql-database-wide-engine-modification/#more-8" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/php-script-mysql-database-wide-engine-modification/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Social media site Twitter</title>
		<link>http://www.sdinternet.co.uk/post/social-media-site-twitter/</link>
		<comments>http://www.sdinternet.co.uk/post/social-media-site-twitter/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 11:47:35 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[Internet Marketing]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/post/social-media-site-twitter/</guid>
		<description><![CDATA[The Webpronews.com newsletter is always very informative and this morning was no exception. It was all about social networking and micro-blogging. Twitter seemed to be the main focus of the article so I thought I would give it the once over.
The Twitter site seemed very basic in design and uncluttered. I would say overall Twitter [...]]]></description>
			<content:encoded><![CDATA[<p>The Webpronews.com newsletter is always very informative and this morning was no exception. It was all about social networking and micro-blogging. Twitter seemed to be the main focus of the article so I thought I would give it the once over.</p>
<p>The Twitter site seemed very basic in design and uncluttered. I would say overall Twitter is more like a cut down version of Facebook than a mini blog. It's got the social element of Facebook and the posting functionality of a blog, only you're limited to 140 characters for your posts. So it's more like a status update than a blog post. <a href="http://www.sdinternet.co.uk/post/social-media-site-twitter/#more-6" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/social-media-site-twitter/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress code highlighter plug-in</title>
		<link>http://www.sdinternet.co.uk/post/wordpress-code-highlighter-plug-in/</link>
		<comments>http://www.sdinternet.co.uk/post/wordpress-code-highlighter-plug-in/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 12:02:15 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/post/wordpress-code-highlighter-plug-in/</guid>
		<description><![CDATA[Initially I tried to install Dean's code highlighter from the Wordpress  plug-in directory but I couldn't get it to work and it didn't seem to highlight  my code at all. So instead I installed the other code highlighter that was  available. It seemed to work without any problems until I noticed that [...]]]></description>
			<content:encoded><![CDATA[<p>Initially I tried to install Dean's code highlighter from the Wordpress  plug-in directory but I couldn't get it to work and it didn't seem to highlight  my code at all. So instead I installed the other code highlighter that was  available. It seemed to work without any problems until I noticed that it was  adding a random bit of PHP code  <em>&lt;/odbc_num_fields($result);++$i)&gt;.</em> <a href="http://www.sdinternet.co.uk/post/wordpress-code-highlighter-plug-in/#more-4" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/wordpress-code-highlighter-plug-in/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FIRST POST!</title>
		<link>http://www.sdinternet.co.uk/post/first-post/</link>
		<comments>http://www.sdinternet.co.uk/post/first-post/#comments</comments>
		<pubDate>Thu, 25 Oct 2007 14:12:55 +0000</pubDate>
		<dc:creator>simon</dc:creator>
		
		<category><![CDATA[Drivel]]></category>

		<guid isPermaLink="false">http://www.sdinternet.co.uk/?p=3</guid>
		<description><![CDATA[This is my first entry to get the ball rolling. I have created the category 'Drivel' which I will use instead of 'Uncategorized' to store my worthless or uncategorised posts.
This is my second ever instillation of Wordpress and I'm very impressed with the ease of instillation, it was completed within minutes. All that needs to [...]]]></description>
			<content:encoded><![CDATA[<p>This is my first entry to get the ball rolling. I have created the category 'Drivel' which I will use instead of 'Uncategorized' to store my <font size="-1">worthless or uncategorised posts.</font></p>
<p>This is my second ever instillation of Wordpress and I'm very impressed with the ease of instillation, it was completed within minutes. All that needs to be done now is:</p>
<ul>
<li><strike>make the URL's search engine friendly</strike></li>
<li>install a gallery plugin of some kind</li>
<li><strike>modifications to design</strike></li>
<li><strike>install a code highlighter plugin</strike></li>
<li><strike>install a stats plugin so I can track usage</strike></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.sdinternet.co.uk/post/first-post/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
