2/22/2006
Mint Pepper DLoads v0.72
DLoads v0.72 is released.
This is a minor bugfix release.
Changelog:
Moved mint->record below file delivery routine, corrects a header error on some
servers
Added ini_set() to turn off output compression, if on
Added configuration var to set Abbr chars for long file name chopping in mint display
servers
Added ini_set() to turn off output compression, if on
Added configuration var to set Abbr chars for long file name chopping in mint display
Download: DLoads v0.72
Full DLoads Pepper infomation: DLoads Pepper
Thanks to Scott Boms at …On A Long Piece Of String for information on a bug he found on his setup.
Popularity: 20%



February 24th, 2006 at 2:12 pm
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.
February 25th, 2006 at 12:25 pm
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:
or something like this in your WP header:
February 25th, 2006 at 5:16 pm
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.
February 26th, 2006 at 10:45 am
Did you look at a phpinfo() page to make sure those settings are actually taking?
February 27th, 2006 at 3:16 am
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. [ed. removed link for security reasons]
February 27th, 2006 at 9:26 am
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:
// 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;
February 27th, 2006 at 2:14 pm
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.