<?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>scriptygoddess &#187; PHP Related</title>
	<atom:link href="http://www.scriptygoddess.com/archives/category/bookmarks/php-related/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2011 18:23:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Force File Download</title>
		<link>http://www.scriptygoddess.com/archives/2007/02/09/force-file-download/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/02/09/force-file-download/#comments</comments>
		<pubDate>Fri, 09 Feb 2007 22:33:52 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[PHP Related]]></category>
		<category><![CDATA[Script snippet]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/02/09/force-file-download/</guid>
		<description><![CDATA[How to force a file to download (without having to zip it up). $filename = "secure/writeToFile.doc"; header("Content-Length: " . filesize($filename)); header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename=writeToFile.doc'); readfile($filename); a few other content types &#8211; lots more at the above link&#8230; "pdf": "application/pdf" "zip": "application/zip" "xls": "application/vnd.ms-excel" "ppt": "application/vnd.ms-powerpoint" "gif": "image/gif" "png": "image/png" "jpg": "image/jpg" "mp3": "audio/mpeg" "mp3": [...]
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://actionscript.org/forums/showthread.php3?t=89784">How to force a file to download (without having to zip it up).</a></p>
<p><code>$filename = "secure/writeToFile.doc";</code></p>
<p><code>header("Content-Length: " . filesize($filename));<br />
header('Content-Type: application/msword');<br />
header('Content-Disposition: attachment; filename=writeToFile.doc');</code></p>
<p><code>readfile($filename);</code></p>
<p>a few other content types &#8211; lots more at the above link&#8230;</p>
<p><code>"pdf": "application/pdf"<br />
"zip": "application/zip"<br />
"xls": "application/vnd.ms-excel"<br />
"ppt": "application/vnd.ms-powerpoint"<br />
"gif": "image/gif"<br />
"png": "image/png"<br />
"jpg": "image/jpg"<br />
"mp3": "audio/mpeg"<br />
"mp3": "audio/mp3"<br />
"wav": "audio/x-wav"<br />
"mpe": "video/mpeg"<br />
"mov": "video/quicktime"<br />
"avi": "video/x-msvideo"</code></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/02/09/force-file-download/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Captcha</title>
		<link>http://www.scriptygoddess.com/archives/2007/01/04/captcha/</link>
		<comments>http://www.scriptygoddess.com/archives/2007/01/04/captcha/#comments</comments>
		<pubDate>Thu, 04 Jan 2007 17:24:08 +0000</pubDate>
		<dc:creator>Jennifer</dc:creator>
				<category><![CDATA[Bookmarks]]></category>
		<category><![CDATA[PHP Related]]></category>

		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2007/01/04/captcha/</guid>
		<description><![CDATA[Just installed this captcha code on a form and it was extremely simple to do and so far seems to work great. Just thought I&#039;d share. No related posts. Related posts brought to you by Yet Another Related Posts Plugin.
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just installed <a href="http://www.white-hat-web-design.co.uk/articles/php-captcha.php">this captcha code</a> on a form and it was extremely simple to do and so far seems to work great. Just thought I&#039;d share. <img src='http://www.scriptygoddess.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.scriptygoddess.com/archives/2007/01/04/captcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

