5 Replies Latest reply on Apr 9, 2008 4:28 AM by Günter Schenk

    Download limit to 14 Mb

      Hi,

      I've a problem with downloading files >14,5 mb.
      I'm using ADDT on DWCS3, with PHP-MySQL. Can you help me?

      Marcin
        • 1. Re: Download limit to 14 Mb
          Günter Schenk Level 4
          Hi Marcin,

          I suspect that ADDT´s "tNG_download.php" script times out on the server when downloading such large files -- please try with temporarily changing php.ini´s default "max_execution_time" value (30 seconds) to a higher value by adding...



          ...on line 1 of your download page.

          Works better now ?

          Cheers,
          Günter Schenk
          Adobe Community Expert, Dreamweaver
          • 2. Re: Download limit to 14 Mb
            Level 1
            Hi,

            I've tried this solution but it is not working, any idea what to do next? Maybe my server provider does not allowed to change this setting (max_execution_time)? How can I check it? phpinfo() does not work. "tNG_download4.php" this is the script with is used to make download link.

            Marcin
            • 3. Re: Download limit to 14 Mb
              Günter Schenk Level 4
              Hi Marcin,

              -----
              "tNG_download4.php" this is the script with is used to make download link.
              -----

              yes, but it´s not "responsible" for the issue you´re dealing with.

              If your host doesn´t even support phpinfo(), I suggest to shoot them a mail and request this information.

              Cheers,
              Günter Schenk
              Adobe Community Expert, Dreamweaver
              • 4. Re: Download limit to 14 Mb
                Level 1
                Hi Gunter,

                I've tried my database and download page on other host, and there ware no problems to download 61 mb file, what should I looking for in phpinfo - status of "safe_mode" because if it is ON, "ini_set("max_execution_time", 99); will not work? If You have any suggestion please let me know.

                pozdrawiam Marcin
                • 5. Re: Download limit to 14 Mb
                  Günter Schenk Level 4
                  Marcin,

                  ------
                  what should I looking for in phpinfo
                  ------

                  the value of the "max_execution_time" directive.

                  ------
                  status of "safe_mode" because if it is ON
                  ------

                  the "safe_mode" setting doesn´t have any effect on the downloads -- if it had, you couldn´t download nothing at all.

                  -----
                  I've tried my database and download page on other host, and there ware no problems to download 61 mb file
                  -----

                  that other host assumingly has notably higher default value for the "max_execution_time" directive

                  -----
                  "ini_set("max_execution_time", 99); will not work
                  -----

                  ...because some hosts disable overriding the default settings.

                  -----
                  If You have any suggestion please let me know
                  -----

                  it really seems that you will have to check with your host

                  Cheers,
                  Günter Schenk
                  Adobe Community Expert, Dreamweaver