XChristaX Posted September 16, 2008 Share Posted September 16, 2008 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 Quote Link to comment Share on other sites More sharing options...
drisate Posted September 16, 2008 Share Posted September 16, 2008 This could be a firewall issue with your host. Did you try zipping up the wave? Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 16, 2008 Author Share Posted September 16, 2008 I just tried to zip it and it still does the same thing. I am using streaming as download redirect I can't get working... would that have something to do with it? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 16, 2008 Share Posted September 16, 2008 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 Quote Link to comment Share on other sites More sharing options...
redarrow Posted September 16, 2008 Share Posted September 16, 2008 Try to force your downloads................ http://www.phpfreaks.com/forums/index.php/topic,95433.0.html Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 16, 2008 Author Share Posted September 16, 2008 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 Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 16, 2008 Share Posted September 16, 2008 somehow in the php the file goes from being stored in a file or database to being sent to download you need to find and show that code. Also 12.5% compression is junk because waves were not built to compress like MP3s Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 16, 2008 Author Share Posted September 16, 2008 Ok I will look to see if I can find the code. - I only zipped the file to check what the first poster suggested. I never thought of selling my music as a zipped file. Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 16, 2008 Author Share Posted September 16, 2008 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! Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 17, 2008 Author Share Posted September 17, 2008 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. Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 17, 2008 Share Posted September 17, 2008 did you restart Apache after changing php.ini? did you check phpinfo to see if the change had any effect? Quote Link to comment Share on other sites More sharing options...
XChristaX Posted September 17, 2008 Author Share Posted September 17, 2008 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.