Schlo_50 Posted March 5, 2008 Share Posted March 5, 2008 Hello, I have (with the help of php.net) created an upload script which is meant to allow users to upload files up to 300mb in size to ftp. In the php.ini file post_max_size is set to 16M and so I can't upload any file larger than that. My hosts don't allow access to php.ini or .htaccess so I am wondering whether there is a work around using PHP? (I have tried to set the MAX_FILE_SIZE but to no avail.) I have also googled this for the last hour but there seems to be no clear answer. Maybe someone here has an answer of suggestion? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/94480-phpini-and-post_max_size/ Share on other sites More sharing options...
deansatch Posted March 5, 2008 Share Posted March 5, 2008 I think you'll be hard pushed to find a host that will allow you to upload files 300mb in size via php. Link to comment https://forums.phpfreaks.com/topic/94480-phpini-and-post_max_size/#findComment-483810 Share on other sites More sharing options...
Schlo_50 Posted March 5, 2008 Author Share Posted March 5, 2008 I am thinking the same, but would really like to know if there is a work around using PHP to kind of bypass the servers php.ini file? I have heard that it might be possible to creat my own and use that but I have no idea how to do that, and am not sure if it would even work? Link to comment https://forums.phpfreaks.com/topic/94480-phpini-and-post_max_size/#findComment-483855 Share on other sites More sharing options...
PFMaBiSmAd Posted March 5, 2008 Share Posted March 5, 2008 If you are on a server where php is running as a server module (and the web host has not prevented you from changing the specific values) you can set the php settings that affect uploading in a .htaccess file. If you are on a server where php is running as a cgi wrapper (and the web host has not prevented you from changing the specific values) you can set the php settings that affect uploading in a local php.ini file (in your document root folder.) Link to comment https://forums.phpfreaks.com/topic/94480-phpini-and-post_max_size/#findComment-483857 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.