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! Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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.) 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.