php.ini file entries in .htaccess file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    php.ini file entries in .htaccess file

    Since we are hosting websites on different hosting sites, we wont have the access to php.ini file .

    so where do i need to add the entries like

    php_value upload_max_file size 20M
    php_value post_max_size 20M
    php_value max_execution_t ime 200
    php_value max_input_time 200

    in the .htaccess file.

    ini_set(upload_ max_filesize,30 000) does not work . cant we change the value of upload_max_file size using ini_set ?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    anywhere in the .htaccess should be fine

    Comment

    • philipwayne
      New Member
      • Mar 2010
      • 50

      #3
      You can't change the value for max_upload_size in a PHP script it automatically rejects any files above the file size limit before your script runs. But yes you can use it in the .htaccess files

      Comment

      Working...