<?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>Funktastic Programming &#187; PHP Scripting</title>
	<atom:link href="http://www.talkd.com/category/php-scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.talkd.com</link>
	<description>Adventures in Web Development</description>
	<lastBuildDate>Mon, 07 Mar 2011 17:23:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP &#8211; A Vastly Superior Scripting Language</title>
		<link>http://www.talkd.com/php-a-vastly-superior-scripting-language/</link>
		<comments>http://www.talkd.com/php-a-vastly-superior-scripting-language/#comments</comments>
		<pubDate>Fri, 10 Mar 2006 20:12:16 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=158</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>I am continually amazed at the simplicity of web scripting using <a href="http://technorati.com/tag/PHP" rel="tag">PHP</A>.  Unlike Active Server Pages, you can perform complex tasks using only 1/3 the amount of code.  Not only does this make the code easier to write, it is easier to read and maintain as well.  When I first started Orvado, I wanted to develop all our code under PHP &#8211; I sure wish that we had gone that route now!</p>
<p>As an example, I had to write some code to load a template into a variable.  Although <strong>file_get_contents()</strong> exists in PHP 5, I wanted something more portable so I used the function <strong>file</strong>.  Using one function, I did the work that would take at least three lines in Active Server Pages.  As I&#8217;m writing PHP, I find that the code is much easier to understand and maintain than the best ASP.</p>
<p>Another advantage of PHP is the huge variety of functions available to you.  Unlike ASP which has somewhere around 200, PHP must have more than 1000.  Many of the problems facing web developers have already been tackled by other PHP developers.  I often find useful algorithms in the comments section of the PHP documentation.  Common tasks such as &#8220;file upload&#8221; that require a specialized ActiveX component in ASP, are part of the core PHP language.</p>
<p>This brings me to one of the downsides of PHP &#8211; keeping track of which functions are supported in each version of PHP.  If you want to make your code portable between many different servers, you will probably want to have compatibility with the lowest version of PHP (version 3.0 is probably as low as you want to go.)  The good thing is that the PHP documentation site indicates the compatibility for each function.  You can even write code that checks the PHP environment the script is running under and account for the functions that are available in that version.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/php-a-vastly-superior-scripting-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASP to PHP Script Conversion</title>
		<link>http://www.talkd.com/asp-to-php-script-conversion/</link>
		<comments>http://www.talkd.com/asp-to-php-script-conversion/#comments</comments>
		<pubDate>Wed, 02 Mar 2005 04:51:26 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=98</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been plugging away getting my Intranet code ported to PHP.  Currently, I have most of the COM objects and script libraries completed.  Also, I have mastered some of the inconsistencies between the way PHP and ASP work.</p>
<p>For example, I was suprised to learn that PHP doesn&#8217;t have &#8220;application-scoped&#8221; variables that persist across the entire site (for all users.)  I was able to find an informative article through Google that explained how to accomplish this using the shared memory module that is available for PHP.</p>
<p>So I think I finally have all of the major hurdles cleared.  It should just be a simple matter of converting all of the scripts.  I&#8217;ve made some improvements to my &#8220;ASP-To-PHP&#8221; conversion tool which will speed up the work.  I&#8217;ve still got a long way to go to make this tool very powerful.  My business partner believes this would be some software we could sell for a profit.  If there&#8217;s one thing we could use right now, it would be profits!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/asp-to-php-script-conversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Converting Web Pages from ASP to PHP</title>
		<link>http://www.talkd.com/converting-web-pages-from-asp-to-php/</link>
		<comments>http://www.talkd.com/converting-web-pages-from-asp-to-php/#comments</comments>
		<pubDate>Sat, 01 Jan 2005 16:12:40 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=60</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>Currently, I am working on a script that will convert an ASP web script into a PHP script.  My company is seriously considering moving all of our servers to a Unix environment.  While we could just go out and buy an ASP processor for Unix (like Sun&#8217;s), I think it would be better to use PHP since it is a much more powerful scripting language.</p>
<p>So I have started writing a script that will do some intelligent search-and-replace using regular expressions.  Right now I have about 100 regular expressions written and it is quite slow in processing a single script.  I really should have used a parsing tool such as Lex and Yacc to do an efficient processing of the source script.</p>
<p>I chose a script instead because I am more familiar with that and it eliminates the time-consuming process of writing conversion routines in C.  Right now it seems like I will never be able to get this thing perfected 100%, but 99% would be really good right now.  This could be a very useful tool that I might be able to sell to .other web site developers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/converting-web-pages-from-asp-to-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wiki Web Site Authoring</title>
		<link>http://www.talkd.com/wiki-web-site-authoring/</link>
		<comments>http://www.talkd.com/wiki-web-site-authoring/#comments</comments>
		<pubDate>Thu, 30 Dec 2004 02:02:12 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=56</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>Today I tried out a new Wiki authoring software called <a href="http://www.pmwiki.org">PmWiki</a>.  For those of you who don&#8217;t know Wiki is a web site authoring tool that allows you to create pages, update or delete pages by using nothing more than a web browser.  It is intended to be open for anyone to make changes or additions to the content in a quick and efficient manner.</p>
<p>With PmWiki, I believe I have found one of the most efficient Wiki platforms.  While it is small, it still manages to provide a great set of features to make it a valuable platform for a new site or an addition to an existing site.</p>
<p>I have a Linux resource site that I need to modify to use this Wiki software.  In combination with PmWiki, I am going to add the <a href="http://phorum.org/">Phorums</a> PHP message board software to make a community-supported documentation site.  More details on this when I get ready to launch.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/wiki-web-site-authoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP BB Forum Vulnerability</title>
		<link>http://www.talkd.com/php-bb-forum-vulnerability/</link>
		<comments>http://www.talkd.com/php-bb-forum-vulnerability/#comments</comments>
		<pubDate>Thu, 23 Dec 2004 17:52:40 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=48</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>A news report on the Internet mentioned that a lot of sites were being hacked due to vulnerabilities in phpBB forum software.  I believe that I have been a victim of this malicious virus.  Somebody broke into our server about 8 months ago and wiped out a lot of our files.  Specifically, they targetted all &#8220;index.html&#8221; and &#8220;index.php&#8221; files on the server.</p>
<p>It really makes me angry to see poorly written code such as this on software that was so widely used.  Open-source software writers should work harder to maintain security in their products in order to promote industry acceptance.  It&#8217;s events like these that give Microsoft another good excuse to badmouth Open Source and free software.</p>
<p>I&#8217;m glad that I have switched to Phorum instead of phpBB.  It runs a lot faster than phpBB and has a large number of plug-ins to extend the functionality.  I converted my forum site: <a href="http://www.winxpforum.com/">WinXP Forum</a> to this software just last month.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/php-bb-forum-vulnerability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phorum Message Board Software</title>
		<link>http://www.talkd.com/phorum-message-board-software/</link>
		<comments>http://www.talkd.com/phorum-message-board-software/#comments</comments>
		<pubDate>Thu, 09 Dec 2004 21:29:06 +0000</pubDate>
		<dc:creator>kenrich</dc:creator>
				<category><![CDATA[PHP Scripting]]></category>

		<guid isPermaLink="false">http://d32147.u40.imountain.com/?p=44</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just been poring over the code for Phorum, the php message board<br />
code.  The code is easy to follow and well written.  I commend the folks<br />
who put this together.  In addition to using this forum code to run my<br />
site (<a href="http://www.winxpforum.com/">http://www.winxpforum.com</a>),<br />
I have also planning on porting a lot of code from ASP to PHP.  This code<br />
is an excellent primer for how to write a PHP application for the<br />
Web.</p>
<p>In particular, it excels at creating a modular architecture<br />
with templates for each page on the site.  You can change the site by<br />
simply editting the templates.  By keeping the code and the templates<br />
separate, it makes it a heckuva lot easer on the HTML developer to mold<br />
the forum to fit their site&#8217;s template.</p>
<p>Another thing the code does<br />
well is to provide common &#8220;hooks&#8221; which you can attach events to.  An<br />
event can be either a PHP script to include at the appropriate location,<br />
or a PHP function to be called.  Using this system, it allows others to<br />
create plug-ins that can easily be integrated into the system.  I will<br />
definitely be using this architecture when porting my site administration<br />
tools from ASP to PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.talkd.com/phorum-message-board-software/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

