php upload file limit

Discussion in 'PHP' started by juancito, May 14, 2007.

  1. #1
    Hi guys.. I got script which lets you upload files. On the demo page of the vendor it works great with large files. In my case, if the file is over 18 mb it stops responding.

    I've tried adding these lines to the .htaccess files but with not luck.. any ideas?

    php_value upload_max_filesize 100M
    php_value post_max_size 150M
    php_value memory_limit 32M
    php_value max_execution_time 600


    any ideas?

    thanks
     
    juancito, May 14, 2007 IP
  2. lemaitre

    lemaitre Peon

    Messages:
    61
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    1. You're not setting max_input_time. If it's too low, you will get timeouts. Try setting it to 300.

    2. Apache may not be recognizing the php_value directives. Try setting the values in your php.ini file.
     
    lemaitre, May 14, 2007 IP
  3. SophMedia

    SophMedia Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    As lemaitre mentioned, it could be that Apache is not picking up the php_value commands, try running phpinfo() to double check this.
     
    SophMedia, May 14, 2007 IP