Skip to content


Mint Pepper DLoads 0.70 Beta

I finally found the time to work out the issues in my DLoads Pepper for Mint.

This release has only been tested on a couple of Mint v1.25 releases so, YMMV. The documentation still needs update a bit too, but the install should be straightforward on a v1.2x install.

DLoads v0.7 Beta

DLoads versions greater than the last release (v0.5) will only work with Mint v1.2 or greater.

Popularity: 13% [?]

Posted in Development, PHP, Software.


6 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. paul says

    hi there!
    i have problems with the configuration of the ‘$file’ var. seems that the $_SERVER['REQUEST_URI'] value is always the url of the dloads.php. any suggestions?
    thanks

  2. damonp says

    Sounds like your PHP build may be a little different. Can you take a look at your phpinfo() page and see what variables are available?

    All the way at the bottom should be the _SERVER variables. Other options for the REQUEST_URI variable may be _SERVER[SCIPT_NAME], _SERVER[SCRIPT_FILENAME], _SERVER[PHP_SELF] or _SERVER[REDIRECT_URL].

  3. paul says

    hi damon!
    here some info. alle the fields are filled correctly i think. i replaced the values, sorry. need more info?

    maybe this causes the problem:
    i´ve got a directory with my download files in it (“files.server.com”) and a directory where mint runs (“stats.server.com”). the path of your pepper in my .htaccess file is “http://stats.server.com/pepper/damonparker/dloads/dloads.php”.
    when i try to download “http://files.server.com/beer.jpg” i´ll be redirected to a blank page “file not found” – the result of the throw-404 function.
    so when i insert the phpinfo-command into the “dloads.php” the $file, $filepath is always “/pepper/damonparker/dloads/dloads.php”. what is the problem?
    maybe the original file-path-information gets lost when the htaccess file redirects?
    regards, paul

    ======================================
    running php 4.4.1

    _SERVER["SCRIPT_FILENAME"] -value-
    _SERVER["SCRIPT_URI"] -value-
    _SERVER["SCRIPT_URL"] -value-
    _SERVER["SERVER_ADDR"] -value-
    _SERVER["SERVER_ADMIN"] -value-
    _SERVER["SERVER_NAME"] -value-
    _SERVER["SERVER_PORT"] 80
    _SERVER["SERVER_SOFTWARE"] Apache/df-exts 1.2 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d AuthPG/1.3

    _SERVER["REQUEST_METHOD"] GET
    _SERVER["QUERY_STRING"] no value
    _SERVER["REQUEST_URI"] -value-
    _SERVER["SCRIPT_NAME"] -value-

  4. paul says

    hey damon!
    i copied the post to the pepper-forums. maybe the other guys have some helpfull ideas, too.

    http://www.haveamint.com/forum/viewtopic.php?id=911

    thanks, paul

  5. damonp says

    An external file path will not work in the .htaccess file. The type of rewrite it is using needs a local file path to dloads.php. I doubt this will work the way you are using it here as dloads.php won’t be able to find the files from its frame of reference. dloads.php executes from the stats.domain.com server. Your download files are on files.domain.com not stats.

Continuing the Discussion

  1. Peppermint Tea » Blog Archive » DLoads 0.70 beta linked to this post on 1/7/2006

    [...] Damon has updated his DLoads Pepper for Mint to v1.2+ compatible. [...]



Some HTML is OK

or, reply to this post via trackback.