They were set to 60 but I moved them up to 300 and then 600 and up and up and it didn't change the outcome. I also set it on both the zen side as well as the server side.
They were set to 60 but I moved them up to 300 and then 600 and up and up and it didn't change the outcome. I also set it on both the zen side as well as the server side.
And is it failing at exactly 55 seconds for everyone? or just certain people?
What about on a dialup connection?
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I will have my mom test it on her machine. The site is not up and running for other customers because I can't sort this out and continue adding products until I see if I can actually use the cart. If I can't get it sorted then I will have to try a different cart/ way... so I don't know yet if it is failing for others just on the 2 machines I have tried it on. I will have my mom test it from her house and let you know if it is the same for her.
Thanks though for taking time to help me. I was feeling like I was alone for a bit :)
Ok same thing happens on her pc.
In the mean time I was reading where most hosts put a limit on php execution time anyway and nobody can change that... so based on that... then what would be a solution for a php based shopping cart with downloads that are over 35mb and will always reach the 60 second time cap?
If you put your download folder back into public_html and use redirect, does the problem persist?
It seems pretty clear that it's your server's unique configuration that's causing the problems you're experiencing.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I can't get it to do the redirect it keeps giving a 400 bad request error. I have never been able to get that to work even though I am on a server that allows for it. I see that it creates the temp folder with that begins with a (dot) . and then letters like this .tdxfghrtych but then there is never a file that gets put there and when you click on the download it just takes to you to the bad request page. Any ideas how to fix that so I can test it that way?
Same thing is happening to me..
did you ever find the solution ?
Yes... Zencart isn't the solution for my project. I can't use any php code with larger files and still be on a shared hosting program. I will have to get a Virtual Private Server to use PHP. This is because there is an inherent limit on time PHP script execution time... that runs on a shared hosting server. After talking to about 15 hosting companies I found the average to be about 60 seconds. Most companies will allow you to edit the php.ini file but no matter what number you place in the max_execution, you are still limited by the inherent server max. The excuse they gave about the reason they limit, is "for security reasons".
The only option is to use a cart that does not run PHP script, or to move to a Virtual Private Server (VPS). On a VPS, you have the control of the server and don't have the limits placed on a shared server.
I decided to move away from zencart (because of the limits my server has on the sorts of things I would like to accomplish).
My Granny always told me... "You should never step over dollars to save dimes". I am taking her advice and going to fork out the money for a VPS.
I will be using zencart for another project that is not as complicated and will not require the extended php script execution time.
If the downloads are stored above public_html than the rediredct method will not work. The .tdxfghrtych is a symlink to the original downloads folder and file. You can keep the downloads folder above public_html and use the streaming but you need to have it set up correctly. The maximum execution time is not affected by system calls, stream operations etc.
Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!
If that is the case, then why am I getting everything to work up to a certain time limit? It is configured and redirects and allows you to download but it cuts the download. Play the file (music) that got partially downloaded, and it plays for a few seconds normal and then stops (due to not completing the download)
I would love to have a solution to this, but after a month now... nothing has worked.