<?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>techcosupport.com &#187; PHP</title>
	<atom:link href="http://techcosupport.com/press/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://techcosupport.com/press</link>
	<description>Techco Support Site - We support your business through Technology, Training and Coaching</description>
	<lastBuildDate>Thu, 29 Jul 2010 07:08:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Make sure you exit after a PHP Header Location</title>
		<link>http://techcosupport.com/press/make-sure-you-exit-after-a-php-header-location/</link>
		<comments>http://techcosupport.com/press/make-sure-you-exit-after-a-php-header-location/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 21:51:39 +0000</pubDate>
		<dc:creator>bgt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Header]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Redirect]]></category>

		<guid isPermaLink="false">http://techcosupport.com/press/?p=304</guid>
		<description><![CDATA[<p>We came accross a bug in a bot filtering page the other day.  The page called a routine which used a regular expression to check for validly formatted input.  The function was called from several places and worked fine.  In just one branch it appeared to fail to validate the input, and [...]]]></description>
			<content:encoded><![CDATA[<p>We came accross a bug in a bot filtering page the other day.  The page called a routine which used a regular expression to check for validly formatted input.  The function was called from several places and worked fine.  In just one branch it appeared to fail to validate the input, and continued execution of the page instead of redirecting to the   target page.</p>
<p>The reason?   Someone left out the exit; after the Header Location call, which allows the execution to continue down the page.  Moral:  Make sure you call <strong>exit</strong> after a PHP Header call to Location if you want execution to branch immediately!</p>
<p><code><?php<br />
if (InvalidInput($Stuff))<br />
  {<br />
    header("Location: http://www.example.com/"); /* Redirect browser */<br />
    exit; /* Make sure that code below does not get executed when we redirect. */<br />
  }<br />
/* Execute on valid input */<br />
?></code></p>
]]></content:encoded>
			<wfw:commentRss>http://techcosupport.com/press/make-sure-you-exit-after-a-php-header-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started With PHP</title>
		<link>http://techcosupport.com/press/getting-started-with-php/</link>
		<comments>http://techcosupport.com/press/getting-started-with-php/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 22:36:11 +0000</pubDate>
		<dc:creator>bgt</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://techcosupport.com/press/?p=161</guid>
		<description><![CDATA[<p>Getting started with PHP is a challenge just like any other programming language, but don’t let that stop you! There are plenty of resources for the experienced programmer looking for a technical solution, but they are too techey for the newbie just starting out.  This post is a good place to start with PHP [...]]]></description>
			<content:encoded><![CDATA[<p><strong><a href="http://techcosupport.com/press/getting-started-with-php/" title="Getting started with PHP">Getting started with PHP</a></strong> is a challenge just like any other programming language, but don’t let that stop you! There are plenty of resources for the experienced programmer looking for a technical solution, but they are too techey for the newbie just starting out.  This post is a good place to start with PHP and lists some useful PHP resources to help you.</p>
<p>PHP is a powerful server-side scripting language for creating dynamic and interactive websites.  Server side means that it runs on the server hosting the page, rather than the client or browser.  PHP is widely used, partly because it is free, but mainly because it provides a fast and efficient alternative to competitors such as Microsoft&#8217;s ASP.  It also supports database access easily and with much fewer lines of code than ASP.  PHP is perfectly suited for Web development and can be embedded directly into the HTML code.  </p>
<p>One place to start is the PHP manual, which unsurprisingly has a Getting Started section.  My advice is to scan read as much of this as you can before attempting to start programming in PHP.  It will explain what PHP is and can do, and then gives you a simple tutorial.</p>
<p><a href="http://uk2.php.net/getting-started" title="Click here to visit PHP manual">Click here to visit PHP manual</a></p>
<p>Another good place to start learning PHP is the PHP Tutorial on the w3schools website.   This provides a complete references of all PHP functions and some user friendly cross links to functions that you may not even realise that you will need.</p>
<p><a href="http://www.w3schools.com/PHP/default.asp" title="Click here to visit W3Schools PHP section">Click here to visit W3Schools PHP section</a></p>
<p>If you are new to PHP programming check out <strong><a href="http://techcosupport.com/press/getting-started-with-php/" title="Getting started with PHP">Getting started with PHP</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://techcosupport.com/press/getting-started-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Widgetizing Themes</title>
		<link>http://techcosupport.com/press/widgetizing-themes/</link>
		<comments>http://techcosupport.com/press/widgetizing-themes/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 21:55:48 +0000</pubDate>
		<dc:creator>bgt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://techcosupport.com/press/?p=155</guid>
		<description><![CDATA[<p>We came across this really helpful resource on codex.wordpress.org which tells you how to fix up your WordPress theme, and make it Widget ready.  Widgets are now a standard part of the WordPress install so to reach the broadest audience all modern themes should support them, as well as supporting old style sidebars.</p>
<p>You need [...]]]></description>
			<content:encoded><![CDATA[<p>We came across this really helpful resource on<a href="http://codex.wordpress.org/"> codex.wordpress.org</a> which tells you how to fix up your WordPress theme, and make it Widget ready.  Widgets are now a standard part of the WordPress install so to reach the broadest audience all modern themes should support them, as well as supporting old style sidebars.</p>
<p>You need to know PHP, HTML mark-up and CSS to benefit from this resource, but  if you are in to writing your own WordPress themes, then you probably are up to speed with these anyway.  If not you will need to be, so why not get cracking now and learn?</p>
<p><a href="http://codex.wordpress.org/Widgetizing_Themes" title="Click here to learn how to Widgetize your WordPress theme">Click here to learn how to Widgetize your WordPress theme</a></p>
]]></content:encoded>
			<wfw:commentRss>http://techcosupport.com/press/widgetizing-themes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
