<?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>PHP Tutorials Code Snippets and Php Tips &#187; php function to refresh page</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/php-function-to-refresh-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +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 Tutorial : Function To Refresh a Page</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-function-to-refresh-a-page/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-function-to-refresh-a-page/#comments</comments>
		<pubDate>Mon, 08 Dec 2008 12:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Short PHP Functions]]></category>
		<category><![CDATA[php function to refresh page]]></category>
		<category><![CDATA[php refresh]]></category>
		<category><![CDATA[refresh in a number of given seconds]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=14</guid>
		<description><![CDATA[Well, This php function uses the html meta tag and its refresh attribute. I use it because I can easily estabilish how many seconds to wait before refreshing the page : nice, isn&#8217;t it? There is already a php function &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-function-to-refresh-a-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well,</p>
<p>This php function uses the html meta tag and its refresh attribute. I use it because I can easily estabilish how many seconds to wait before refreshing the page : nice, isn&#8217;t it?</p>
<p>There is already a php function which refreshes a page, but there isn&#8217;t a way to pass the number of seconds needed before refreshes, it&#8217;s just refreshes the page when the php engine goes to the line of code.</p>
<p>Here is the function :</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">//<span class="phpFunctionKeyword">function</span> to refresh a page in a number of seconds
</span>
<span class="phpFunctionKeyword">function</span><span class="htmlText"> refreshPage</span><span class="phpOperator">(</span>$destination, $seconds<span class="phpOperator">)</span>
<span class="phpOperator">{</span>
<span class="htmlText">
print </span><span class="phpString">"<span class="phpOperator">&lt;</span>meta http-equiv<span class="phpOperator">=</span>\"</span>refresh\<span class="phpString">" content<span class="phpOperator">=</span>\"</span>$seconds<span class="phpText">;</span> url=$destination\<span class="phpString">"<span class="phpOperator">&gt;</span>"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-function-to-refresh-a-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

