<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>おれ最前線ねっと &#187; download</title>
	<atom:link href="http://ore.saizensen.net/archives/tag/download/feed" rel="self" type="application/rss+xml" />
	<link>http://ore.saizensen.net</link>
	<description>イェ〜〜ィ。見てる〜〜〜？？</description>
	<lastBuildDate>Tue, 12 Jul 2011 06:31:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/tag/download/feed" />
		<item>
		<title>CakePHPでファイルのダウンロードのやり方。</title>
		<link>http://ore.saizensen.net/archives/34</link>
		<comments>http://ore.saizensen.net/archives/34#comments</comments>
		<pubDate>Mon, 04 Feb 2008 08:32:24 +0000</pubDate>
		<dc:creator>bubbkis</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Lang]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[ダウンロード]]></category>

		<guid isPermaLink="false">http://ore.saizensen.net/archives/34</guid>
		<description><![CDATA[例えば、 $output_file = sprintf&#40;DB_NAME.&#34;_%s.db&#34;, date&#40;&#34;Ymd-hi&#34;&#41;&#41;; system&#40; [...]]]></description>
			<content:encoded><![CDATA[				<p>例えば、</p>
				
				<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$output_file</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span>DB_NAME<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;_<span style="color: #009933; font-weight: bold;">%s</span>.db&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Ymd-hi&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">system</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/usr/bin/pg_dump -u &quot;</span><span style="color: #339933;">.</span>DB_NAME<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &lt; &quot;</span><span style="color: #339933;">.</span>AUTH_USER_FILE_PATH<span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; &gt; &quot;</span><span style="color: #339933;">.</span>DB_EXPORT_PATH<span style="color: #339933;">.</span><span style="color: #000088;">$output_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">autoRender</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
Configure<span style="color: #339933;">::</span><span style="color: #004000;">write</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'debug'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-disposition: attachment; filename=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: application/octet-stream; name=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$output_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span>DB_EXPORT_PATH<span style="color: #339933;">.</span><span style="color: #000088;">$output_file</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">print</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span></pre></div></div>
				
				<p>みたいな。</p>
]]></content:encoded>
			<wfw:commentRss>http://ore.saizensen.net/archives/34/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ore.saizensen.net/archives/34" />
	</item>
	</channel>
</rss>

