php script execution time, downloads timing out
-
Hello,
I have a wordpress site with a members area. Members can download zipped files of images or video by clicking on a link. The files are in a directory above the public_html directory. The files are served through a php script that purports to locate them in a directory in the public_html called “downloads”. But “downloads” is actually merely a wordpress page that links to the php script that calls the files from their true location. Thus the true path is hidden making the files more secure.In fact this php is contained in a plugin called “hide-real-download-path”. No longer supported or updated for a long time. But still, it’s not complicated and it used to work well. But following, it seems to me, a recent wordpress update, files now time out after 4 minutes. And so files in exess of around 25 – 30 mb fail to download.The code includes the line
set_time_limit(0);
which ought by rights to keep the script open until completion.I tried a different 4 line php script to force download without he location obscuring feature and that also timed out.
However, a straightforward entry of the path if the folder is placed below public-html allows the file to be downloaded completely
I’ve tried messing around with .htaccess code and wp-config code and user.ini code to extend php script execution time but haven’t found a solution.
The site is hosted on Godaddy shared hosting with level 3 resources. They say that they aren’t limiting the script execution time.
Anyone have any ideas what I should do to offer these files as downloads without publishing their address?
Has something changed in the latest version of WordPress to affect script execution times.?
Thanks
The topic ‘php script execution time, downloads timing out’ is closed to new replies.