Need help in this work

Discussion in 'PHP' started by balasun, Aug 4, 2008.

  1. #1
    Hello all,

    I want to upload pdf file more than 10mb into server.

    But when i upload it by using move _uploaded_files method connection timed out problem occurs , even though i applied set_time_limit to 0 and max_file_size. is there any method available like FTP function to upload files from local system to server.

    Please help me if u know the answer.
     
    balasun, Aug 4, 2008 IP
  2. 2slick

    2slick Peon

    Messages:
    73
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try this adding to your .htaccess file

    
    <IfModule mod_php.c>
    php_value   post_max_size 15M
    php_value   upload_max_filesize 15M
    </IfModule>
    
    Code (markup):
     
    2slick, Aug 4, 2008 IP
  3. balasun

    balasun Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for ur reply
     
    balasun, Aug 4, 2008 IP
  4. lovelycesar

    lovelycesar Peon

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If it doesn't work, try editing the same method in php.ini
     
    lovelycesar, Aug 4, 2008 IP
  5. somanweb

    somanweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can try to change the php max_execution_time value in php.ini file.

    or something like

    <IfModule mod_php.c>
    php_value max_execution_time 120
    php_value post_max_size 15M
    php_value upload_max_filesize 15M
    </IfModule>


    Note :
    php_value max_execution_time 120 means ==> 120 seconds
     
    somanweb, Aug 5, 2008 IP