<?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>gone Архиви - rosen4o.net</title>
	<atom:link href="https://rosen4o.net/tag/gone/feed/" rel="self" type="application/rss+xml" />
	<link>https://rosen4o.net/tag/gone/</link>
	<description></description>
	<lastBuildDate>Fri, 29 Nov 2013 23:26:14 +0000</lastBuildDate>
	<language>bg-BG</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>mysql server has gone away or connection timeout</title>
		<link>https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/</link>
					<comments>https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/#respond</comments>
		
		<dc:creator><![CDATA[rosen4o]]></dc:creator>
		<pubDate>Fri, 29 Nov 2013 23:26:14 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[away]]></category>
		<category><![CDATA[gone]]></category>
		<category><![CDATA[mysql]]></category>
		<guid isPermaLink="false">http://rosen4o.net/?p=977</guid>

					<description><![CDATA[<p>If you do a lots of things in one php script this usually takes some time and mysql can gone away 😉 for this when you run new query you can run it with this function which will connect again<span class="ellipsis">&#8230;</span></p>
<div class="read-more"><a href="https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/">Прочетете повече ›</a></div>
<p><!-- end of .read-more --></p>
<p>Материалът <a href="https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/">mysql server has gone away or connection timeout</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you do a lots of things in one php script this usually takes some time and mysql can gone away 😉 for this when you run new query you can run it with this function which will connect again to mysql if previous connection is closed from timeout</p>
<p style="padding-left: 30px;"><code><br />
function run_query($sql){<br />
global $link, $db;</code></p>
<p style="padding-left: 30px;">if(!mysql_ping($link)){<br />
$link = mysql_connect($db[&#8216;host&#8217;], $db[&#8216;user&#8217;], $db[&#8216;pass&#8217;], true);<br />
mysql_select_db($db[&#8216;db&#8217;], $link);<br />
}</p>
<p style="padding-left: 30px;">return mysql_query($sql, $link);</p>
<p style="padding-left: 30px;">}</p>
<p>Материалът <a href="https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/">mysql server has gone away or connection timeout</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rosen4o.net/2013/11/30/mysql-server-has-gone-away-or-connection-timeout/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
