I would like to know the answer too. Anyone here know what is the right answer. I'll do some investigation and get back to you if I discover an decent answer. You should email the people at iPage as they probably could answer your iPage question..
Providing a link on the source directory (usually.
) would require the directory to be accessible to the HTTP server. This means anyone could try random filenames to get stuff. Bad..
We can't generate access rights on the fly, as osCommerce will run on any HTTP server with PHP, and the authorization mechanisms vary widely. This is why we use a public directory for download (usually.
Actually copying the file there for each download might use a huge amount of disk. So we use soft links, a Unix feature. This is actually a "simple link" as you say..
Unfortunately, it is not available on Windows. In this case, we stream the file directly. PHP actually reads the file and sends it to the browser (with a redirect, the web server does this)..
So you might hit two problems: use too much memory or take too long..
Can you control the server settings?..
I see,,,, thanks for the explanation,,, I have a dedicated server so I have full control,,, 241 you say post_max_size,,,, is not the download function using get instead of post, or dose this not matter.... I was reading my php book and it only had a section on ftp downloading but the only answer it gave was changing the execution time from 30 sec to 90 sec.. if that fixes the problem fine,,,, here is the issue then,,, people click to download and they have to wait up to 90 sec before they get the download popup... people are to impationt for that, they will keep clicking the link trying to get it to work and use up all of thier downloads before they ever get the first one started....
Just trying to figure out other options,,, looks like I may have to go to a linux machine...
Changed the settings in php.ini from 8m to 100m and changed time to 90 rebooted machine and still not working. So I put things back because I figured it was not to safe to have the max size at 100..
So now I have no idea...
Post_max_size is not interesting there. You could try and set time_limit to 0 (zero, meaning no limit)..
In any case, I think you should have the open/save dialog immediately..
Do you know why it fails? Memory or time limit?.
Do you get a portion of the file? If yes, can you open it with a good editor (eg UltraEdit) and check the very end of the file. There might be an error message there...
When I was using the cgi,, php.exe, I would get a cgi error unknown error. do not remember exact error message..
Changed to isapi and now it will sit for the required time and then say page not found..
Proccessor usage the whole time is 100% on w3wp.exe.
I never get the download dialog...
Looks like I cant use a php solution with a windows server,,, Does anyone know of a didferent download solution that I might be able to use or would it be easier to go to a linux machine?.
I might need a dedicated machine for this iPage site anyways because the iPage site will be selling nothing but downoads so the less overhead the better..
I can not set up a download option for a large file,, such as 70 Mb. ^ Mb works fine..
I know on windows the system recources are supossed to be a lot more,,, so it says in the comments in download.php,.
I thought mabey it was from using the cgi, so I changed php to use the isapi instead but it still wont work. Is there a fix for this? I do not know why php is bring stressed so much..
What is it trying to proccess,,, I just thought it would be a simple link...
It is more to do with memory issues in the php.ini the memory allocated to the running of scripts. Things to check are.
Upload_max_filesize = this is more for if you are using the file manager to upload files..
Memory_limit = this is the one for memory allocated to running scripts..
Post_max_size = this is the one for sending or downloading.
This post has been edited by.
: 15 February 2004, 11:35..