Jump to content

[SOLVED] php.ini


Stooney

Recommended Posts

I have private site where the admin can upload files.  I need to put a php.ini file in that directory to increase the upload size and post size.  Below is what I have.  It just doesn't seem to work.  I know the upload script works but when I try it with say a 50mb file, after a long wait the script just stops without the file being uploaded.  I've never worked with the php.ini so im pretty clueless.

 

I read the memory_limit should be higher than post_max_size so that's why it's like that.  And I'm assuming the max_execution_time affects how long the script will wait for the file to be uploaded so I set that to 20 minutes (for large files).  Am I missing something?

 

php.ini

upload_max_filesize:500 M
max_execution_time:1800
memory_limit:550 M
post_max_size:500 M

Link to comment
Share on other sites

Alright, looked into it and upload_max_filesize and post_max_size can't be set through ini_set.  So I'll have to do a php.ini in that folder.  I'll email my host and see if they allow me to change that setting.  (I use 1and1.com linux business package).  If they don't allow the setting to be changed, is there any alternative to uploading methods?  Or do I just need to find a different host or dedicated server to use?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.