<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.1.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Mint Pepper DLoads v0.72</title>
	<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/</link>
	<description>mental spew</description>
	<pubDate>Wed, 03 Dec 2008 23:42:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.3</generator>

	<item>
		<title>By: Alexis</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9253</link>
		<author>Alexis</author>
		<pubDate>Fri, 24 Feb 2006 20:12:17 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9253</guid>
					<description>Dloads works really nice, but it seems like my server sometimes adds the ?phpsessid to the end of my links. If that is the case I get a 404 error when I try and download my file. Any way around this? I have asked for support from Dreamhost but have not heard back from them yet. I've had to remove the .htaccess file in my downloads file and stop tracking the downloads until I get this resolved.</description>
		<content:encoded><![CDATA[<p>Dloads works really nice, but it seems like my server sometimes adds the ?phpsessid to the end of my links. If that is the case I get a 404 error when I try and download my file. Any way around this? I have asked for support from Dreamhost but have not heard back from them yet. I&#8217;ve had to remove the .htaccess file in my downloads file and stop tracking the downloads until I get this resolved.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: damonp</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9257</link>
		<author>damonp</author>
		<pubDate>Sat, 25 Feb 2006 18:25:08 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9257</guid>
					<description>Your PHP may be trying to add the session id automatically to the end of all urls.  Try to disable this feature. 

You can add the following to your WP .htaccess:

&lt;code&gt;php_flag session.use_trans_sid off&lt;/code&gt;

or something like this in your WP header:

&lt;code&gt;ini_set('session.use_trans_sid', false);&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Your PHP may be trying to add the session id automatically to the end of all urls.  Try to disable this feature. </p>
<p>You can add the following to your WP .htaccess:</p>
<div class="codesnip-container" >php_flag session.use_trans_sid off</div>
<p>or something like this in your WP header:</p>
<div class="codesnip-container" >ini_set(&#8217;session.use_trans_sid&#8217;, false);</div>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alexis</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9259</link>
		<author>Alexis</author>
		<pubDate>Sat, 25 Feb 2006 23:16:54 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9259</guid>
					<description>Yeah I've tried to do both of those things but I think I may need Dreamhost to actually modify it on their end since those settings do not have any effect. There may be other users out there who need to append other variables to the end of a download file. Its something you may want to consider adding support for.</description>
		<content:encoded><![CDATA[<p>Yeah I&#8217;ve tried to do both of those things but I think I may need Dreamhost to actually modify it on their end since those settings do not have any effect. There may be other users out there who need to append other variables to the end of a download file. Its something you may want to consider adding support for.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: damonp</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9262</link>
		<author>damonp</author>
		<pubDate>Sun, 26 Feb 2006 16:45:40 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9262</guid>
					<description>Did you look at a phpinfo() page to make sure those settings are actually taking?</description>
		<content:encoded><![CDATA[<p>Did you look at a phpinfo() page to make sure those settings are actually taking?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alexis</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9267</link>
		<author>Alexis</author>
		<pubDate>Mon, 27 Feb 2006 09:16:23 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9267</guid>
					<description>Well I upgraded to PHP5 and then the php_flag session.use_trans_sid was set to 0 and the variable stopped coming up. Weird thing though, as soon as I upload the .htaccess file to my downloads folder my main DMG stops downloading all the way. The download stops after going 1.8MB of 6.8MB. As soon as I remove the .htaccess file the download works again. This happened to me using Camino 1.0 and another user first  alerted me to the fact that my DMG file was corrupt or not downloading all the way. This might all be way outside the scope of Dloads, but the .htaccess file definitely does not like my server and PHP5. This is my phpinfo() page.  [&lt;em&gt;ed. removed link for security reasons&lt;/em&gt;]</description>
		<content:encoded><![CDATA[<p>Well I upgraded to PHP5 and then the php_flag session.use_trans_sid was set to 0 and the variable stopped coming up. Weird thing though, as soon as I upload the .htaccess file to my downloads folder my main DMG stops downloading all the way. The download stops after going 1.8MB of 6.8MB. As soon as I remove the .htaccess file the download works again. This happened to me using Camino 1.0 and another user first  alerted me to the fact that my DMG file was corrupt or not downloading all the way. This might all be way outside the scope of Dloads, but the .htaccess file definitely does not like my server and PHP5. This is my phpinfo() page.  [<em>ed. removed link for security reasons</em>]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: damonp</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9268</link>
		<author>damonp</author>
		<pubDate>Mon, 27 Feb 2006 15:26:20 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9268</guid>
					<description>You need to check your webserver error logs to see what the error with the .htaccess file is.

You can also try this snippet in dloads.php instead of the code there that gets the filepath:
[code lang="php"]
$request_uri = $_SERVER['REQUEST_URI'];
// attempt to use alternate server variable to get filename if request_uri fails
if(substr($request_uri, -10) == 'dloads.php')	$request_uri = $_SERVER['REDIRECT_URL']; 	
$request_uri_pieces = parse_url($request_uri);
$file = urldecode($request_uri_pieces['path']);
$filepath = $base_dir . $file;
[/code]</description>
		<content:encoded><![CDATA[<p>You need to check your webserver error logs to see what the error with the .htaccess file is.</p>
<p>You can also try this snippet in dloads.php instead of the code there that gets the filepath:</p>
<div class="codesnip-container" >
<div class="codesnip"><span class="re0">$request_uri</span> = <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;REQUEST_URI&#8217;</span><span class="br0">&#93;</span>;<br />
<span class="co1">// attempt to use alternate server variable to get filename if request_uri fails</span><br />
<span class="kw1">if</span><span class="br0">&#40;</span><a href="http://www.php.net/substr"><span class="kw3">substr</span></a><span class="br0">&#40;</span><span class="re0">$request_uri</span>, -<span class="nu0">10</span><span class="br0">&#41;</span> == <span class="st0">&#8216;dloads.php&#8217;</span><span class="br0">&#41;</span>&nbsp; &nbsp;<span class="re0">$request_uri</span> = <span class="re0">$_SERVER</span><span class="br0">&#91;</span><span class="st0">&#8216;REDIRECT_URL&#8217;</span><span class="br0">&#93;</span>; &nbsp;<br />
<span class="re0">$request_uri_pieces</span> = <a href="http://www.php.net/parse_url"><span class="kw3">parse_url</span></a><span class="br0">&#40;</span><span class="re0">$request_uri</span><span class="br0">&#41;</span>;<br />
<span class="re0">$file</span> = <a href="http://www.php.net/urldecode"><span class="kw3">urldecode</span></a><span class="br0">&#40;</span><span class="re0">$request_uri_pieces</span><span class="br0">&#91;</span><span class="st0">&#8216;path&#8217;</span><span class="br0">&#93;</span><span class="br0">&#41;</span>;<br />
<span class="re0">$filepath</span> = <span class="re0">$base_dir</span> . <span class="re0">$file</span>;</div>
</div>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alexis</title>
		<link>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9274</link>
		<author>Alexis</author>
		<pubDate>Mon, 27 Feb 2006 20:14:17 +0000</pubDate>
		<guid>http://damonparker.org/blog/2006/02/22/mint-pepper-dloads-v072/#comment-9274</guid>
					<description>I looked through my error logs and didn't find anything at all. Its just really odd. Since upgrading to PHP5 I was able to not worry about the phpsessid since dreamhost's default for php5 is php_flag session.use_trans_sid 0. But this new thing with files just getting cut off about 30% of the way is bizzare and I can't seem to find any indication as to what is making it happen. Anyhow if you are interested in trying to figure this out contact me through email and I can see about giving you FTP access and all that. I think dreamhost hosts a lot of designers and bloggers who would be using Mint.</description>
		<content:encoded><![CDATA[<p>I looked through my error logs and didn&#8217;t find anything at all. Its just really odd. Since upgrading to PHP5 I was able to not worry about the phpsessid since dreamhost&#8217;s default for php5 is php_flag session.use_trans_sid 0. But this new thing with files just getting cut off about 30% of the way is bizzare and I can&#8217;t seem to find any indication as to what is making it happen. Anyhow if you are interested in trying to figure this out contact me through email and I can see about giving you FTP access and all that. I think dreamhost hosts a lot of designers and bloggers who would be using Mint.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
