close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


DFP 2 and my download frustration with large .ZIP files

Thread began 9/12/2009 1:12 pm by bbifl346249 | Last modified 9/13/2009 3:23 pm by anonymous | 3199 views | 7 replies |


DFP 2 and my download frustration with large .ZIP files

DFP 2.0 is extremely unreliable and fails more times than it works, when I attempt to download a large zip file. The file IS downloaded, the size looks correct, but when I attempt to open the zip file both Windows and WinRAR report the file is corrupt.

If I download the file using Ipswitch WS_FTP it works EVERYTIME !

I have set up 3 test PHP pages;


each which references the same file, but with a different name (In case it was an issue of the file name or extension). So, one requests a file without any extension, one requests a file with a plain name and .zip extension and one requests the original file name which has '.' in the name and a .zip extension.

All of this (In an .asp page) used to work great with DFP 1 !

This has brought down my commercial download site for clients and I need a solution ASAP.

NOTE : Some of my clients overseas can't download at all, but I and some of my domestic clients can download occasionally. The file size is ALWAYS correct, so it appears to be being corrupted by DFP 2 ....... aaaaarrrrgggghhhhh

PHP example;

<?php echo(realpath('Download/')); ?>

<?php require_once("../WA_DigitalFilePro/HelperPHP.php"); ?>
WA_DFP_DownloadFile("WA_DownloadResult1", "../xxxx/yyyyy/RMPs/", "", "[FileName]", false, false, false, "", "", "", "");
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<form id="form1" name="form1" method="post" action="">
<input type="submit" name="download" id="download" value="download" />

Any help/solution will surely be rewarded with vast amounts of good kharma :)

AND, the files all download first time every time if I use Dreamweaver or a direct link !

Come on WebAssist, this needs sorting out ASAP.

Sign in to reply to this post


One question... can you get a copy of your PHP.ini file? It's probably a server issue - not a DFP issue. I am willing to bet your server either is "timing out" as you are having a PHP script download the file rather than FTP which is a secure always connected protocol. You need to see what your memory limit for processing scripts is and the maximum time allowed or you will get as you described, a partially downloaded ZIP which will not work.

Best regards,


Sign in to reply to this post


Here's hoping it's as simple as a PHP setting

Hi Brian, it will be nice if it's just a matter of re-configuring PHP settings. Not sure this is the problem as 99% of the time the file size is correct ! it's just that the data has been corrupted ?

Anyway, settings attached,


Attached Files
Sign in to reply to this post


I have seen it where the size of the zip get sent correctly in the headers but it is still not a complete file.

I noticed two things on your PHP info that would prevent you from having regular success with large files... One your max_execution_time is set to only 30... so anything longer than 30 seconds, and that script stops working. A normal setting for that would be around 300.

The next thing is your memory limit... DFP's scripts do require use of memory... your setting is 32M. I currently use 128M, but have seen it suggested on here that people use 256M. I have not had any problem with 128 yet, though.

Sign in to reply to this post


OK, lets try this

Thanks Brian,

I've spoke to GoDaddy (My Hosting Company - Yes I can hear the global groans from here), and they have said I need to modify the PHP settings (Duh), but they don;t provide any support on this. I must create .ini file and load it in my root folder.

I understand that only the settings I specify will be updated, all others will stay as they have set them.

To the best of your knowledge, is this all I need for content ?

max_execution_time = 300
memory_limit = 128M

I understand that GoDaddy makes use of two PHP.ini(s), one named PHP.ini for PHP4 and PHP5.ini for PHP 5. I'll put this file in the root under both of these names, just in case.

What do you think ?

Sign in to reply to this post


I am not sure about their policy, but I am also not sure about the idea of uploading the ini file to your root folder.. usually that goes in your PHP folder so when it initializes, the settings from the ini file are used.

Can you find any support documentation at all on their site or with your account. My other concern is that even if a host says they let you control your own ini, many of them have a global ini that can over ride anything you set either way. For example, I can show you how to set your limits simply by putting in htaccess file in your system... but just because the "user level" is set higher won't achieve anything as the "master level"has to also be as high. If you check out your PHP info screen shot, you'll see what I'm talking about - the left column is User Values and the right is Master Values.

Sign in to reply to this post


I'll give it a try and see what happens

If what they say is true (I'll take them at their word) I'll give this a try, then run phpinfo and see if it reports the changes. If the settings have changed, I'll try DFP 2 again.

If the settings have not changed then I'll scour for some information regarding changing php settings on GoDaddy.

One thing I'm not sure of is the syntax of the content of the php.ini file. Can you tell me if my previous example is correct ?

Thanks for all your help,

This is what GoDaddy say ..... 1085

Sign in to reply to this post


yes... that is correct syntax... let me know what you come up with and if there is anything else I can help with, I certainly will.


Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...