<?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>ALOMOHORA &#187; PHP</title>
	<atom:link href="http://alomohora.com/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://alomohora.com</link>
	<description>All about programming languages</description>
	<lastBuildDate>Tue, 25 Oct 2011 04:27:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Redirect a Page</title>
		<link>http://alomohora.com/php-redirect-a-page/</link>
		<comments>http://alomohora.com/php-redirect-a-page/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 08:06:46 +0000</pubDate>
		<dc:creator>alomohora</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://alomohora.com/?p=381</guid>
		<description><![CDATA[Redirecting a page in PHP is an easy task. A PHP Redirect automatically transfers a web user from one URL to another. We can use the PHP Header method to redirect a visitor to a new page. The header() method is used to send HTTP headers back to the browser. The headers can be sent [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Redirecting a page in PHP is an easy task. A PHP Redirect automatically transfers a web user from one URL to another.</p>
<p style="text-align: justify;"><span id="more-381"></span></p>
<p style="text-align: justify;">We can use the PHP Header method to redirect a visitor to a new page. The <strong>header()</strong> method is used to send HTTP headers back to the browser. The headers can be sent back to the browser only if there are no content or error messages shown in the page.</p>
<p style="text-indent: 18pt; text-align: justify;"><strong>&lt;?php</strong></p>
<p style="text-indent: 36pt; text-align: justify;"><strong>header(&#8220;location: [some-url]&#8220;);</strong></p>
<p style="text-indent: 18pt; text-align: justify;"><strong>?&gt;</strong></p>
<p style="text-align: justify;">Replace [some-url] with the URL where you want the redirection to take place. For example:</p>
<p style="text-indent: 18pt; text-align: justify;"><strong>header(&#8220;location: ./version2/index.html&#8221;);</strong></p>
<p style="text-indent: 18pt; text-align: justify;">redirect to &#8220;index.html&#8221; page in subfolder called &#8220;version2&#8243;.</p>
<p style="text-indent: 18pt; text-align: justify;"><strong>header(&#8220;location: http://www.yahoo.com&#8221;);</strong></p>
<p style="text-indent: 18pt; text-align: justify;">redirect to a website called yahoo.com.</p>
<h4>Incoming search terms for the article:</h4><p style="text-align: justify;"><a href="http://alomohora.com/php-redirect-a-page/" title="&lt;?php header(location: [some-url]); ?&gt;">&lt;?php header(location: [some-url]); ?&gt;</a>, <a href="http://alomohora.com/php-redirect-a-page/" title="install zeos delphi xe">install zeos delphi xe</a>, <a href="http://alomohora.com/php-redirect-a-page/" title="redirecting page from silverlight to php">redirecting page from silverlight to php</a>, <a href="http://alomohora.com/php-redirect-a-page/" title="xe2 zeoslib">xe2 zeoslib</a></p>]]></content:encoded>
			<wfw:commentRss>http://alomohora.com/php-redirect-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

