Jump to content

Need Help DL Time-Out


XChristaX

Recommended Posts

I am really New to PHP and this website. If I put this in the wrong place, please let me know.

 

I am setting up my store to sell the beats I make. I am using zencart. I ran into a problem that nobody seems to have the answer for.

 

I am offering 3 sizes of file 2 ar mp3 and one is wav. The 2 mp3 (smaller) download just fine. The wav (about 35mb) goes to about 55 - 60 seconds and stops downloading but says it is complete. This happens with every file I try that is larger. All of them seem to be a time cut-off.

 

Things I have tried... I use ipower as a host and they allow php.ini to be edited so I allowed for more time but this didn't do the trick... I also allowed for bigger size also no luck.

 

It seems to me like there is some time or size limit some place that is not allowing the download past the 55-60 second mark. I did try it with a slower internet connection to see if it was a size issue or a time and it seems like time because it cut off at 55 seconds but dl much less than on the faster machine.

 

I am not sure what other info is needed. I do know that I am running PHP4 on Ipower but can choose PHP5 but was not sure if it would mess with the zen install I currently have.

 

Anyone with some ideas or suggestions?

If this isn't the right area... please let me know where I can ask this.

Thanks!

Christa

Link to comment
Share on other sites

1) Its not firewall if the server stops sending

 

2) How do you prepare said file for download.  If it comes out of MySQL or a file stream the wav files (and its poorly compressed zip counterpart) are probably exceeding the thresholds set for data and you may be suppressing the error along the way stating this or the error is being pushed into the source of the wav file

Link to comment
Share on other sites

1) Its not firewall if the server stops sending

 

2) How do you prepare said file for download.  If it comes out of MySQL or a file stream the wav files (and its poorly compressed zip counterpart) are probably exceeding the thresholds set for data and you may be suppressing the error along the way stating this or the error is being pushed into the source of the wav file

 

I am not really sure what you mean by prepare it for download. I have the files located in a folder in my root and not public (for security) and then zencart is directed to that folder for the download to take place. I was never able to get redirect working, not sure why. So, I am using streaming. If this is a problem like you mentioned in #2  what could I do to fix it?

Thanks and yes I am a phpdumdum

edit- I used winrar to compress it and used 3 different settings all of them still leave the file at around 35mb when the original is about 40

Link to comment
Share on other sites

So, now after looking though some of the code.. I am a bit confused as to which one might contain what is needed.

I forgot to mention earlier that the product is given attributes ... that is where I am giving the product a file to download. The attributes are then assigned to the product So...

would I post all code from attributes_controller.php  or downloads_manager.php  or neither or both? I am really sorry I said before, I am a dumdum with php... but I am trying!

Link to comment
Share on other sites

in the mean time, I looked up at another site and it says that most servers put a php size limit that can't be changed I did change the php.ini size number but it never caused a bit of difference.

 

I am confused now... it looks like I may have to find a non php shopping cart alternative for large files. Or find a host that doesn't limit. Or maybe there is still some setting some place that I need to fix.

 

 

Link to comment
Share on other sites

did you restart Apache after changing php.ini? did you check phpinfo to see if the change had any effect?

 

I am not really sure how to restart apache from the host server. I did check the php.ini as well as looked on the admin section of my cart and the info had been changed and continues to be the same 24 hours later. How would you go about restarting apache from the host... I know how to do it from my pc but not when it is on the host site.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.