<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — The Below code is not working to download sql file from server]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6988&amp;type=atom" />
	<updated>2017-09-24T06:19:31Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6988</id>
		<entry>
			<title type="html"><![CDATA[Re: The Below code is not working to download sql file from server]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28712#p28712" />
			<content type="html"><![CDATA[<p>I am trying to create sql backup and download it straight away for my extension(hrm). Which i am trying to use the FA backup codes.There it worked fine.But its not working properly.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-09-24T06:19:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28712#p28712</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The Below code is not working to download sql file from server]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28710#p28710" />
			<content type="html"><![CDATA[<p>State where you are using this construct and context.</p><p>1. Remove pragma-cache<br />2. Set expiry for refresh to old date<br />3. Make sure file_get contents is within the max filesize and timeouts set in php.ini / apache conf files.<br />4. Zipping the sql will save bandwidth if http gz compression is not enabled.</p><p>View <a href="https://stackoverflow.com/questions/1907653/how-to-force-page-not-to-be-cached-in-php">discussion</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-24T01:54:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28710#p28710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The Below code is not working to download sql file from server]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28709#p28709" />
			<content type="html"><![CDATA[<p>i was trying to download sql file using this script.But its not working </p><div class="codebox"><pre><code> header(&quot;Content-type: &#039;application/sql&#039;&quot;);
            header(&#039;Content-Length: &#039;.filesize(dirname(dirname(__FILE__)).&#039;/backups/&#039;.$key.&#039;.sql&#039;));
            header(&#039;Content-Disposition: attachment; filename=&#039;.$key.&#039;.sql&#039;);
            echo file_get_contents(dirname(dirname(__FILE__)).&#039;/backups/&#039;.$key.&#039;.sql&#039;);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2017-09-23T17:15:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28709#p28709</id>
		</entry>
</feed>
