Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 756503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:15:09+00:00 2026-05-14T15:15:09+00:00

by default PHP will not handle file uploads larger than 2MB, if one requires

  • 0

by default PHP will not handle file uploads larger than 2MB, if one requires PHP to handle larger files then one must set upload_max_filesize and post_max_size in your php.ini file to be larger than 2MB.

what alternative if one uses a shared hosting service with no access to php.ini ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:15:09+00:00Added an answer on May 14, 2026 at 3:15 pm

    File uploads are handled before the script starts running so setting parameters with ini_set() will not work. All serious providers offer a way to customize your PHP settings. The exact mechanism should be explained in their help system and it depends on the server API:

    • If PHP runs as Apache module, you can use the php_value and php_flag directives in an .htaccess file.

    • If PHP runs as CGI (or FastCGI), you should have a custom php.ini file somewhere in your account.

    Some of the settings you may need to change are (.htaccess version):

    php_value max_execution_time 1200
    php_value max_input_time 1200
    php_value memory_limit 128M
    
    php_value post_max_size 50M
    php_value upload_max_filesize 50M
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting a Unable to load the requested file: default.php error in codeigniter
When I am working on a PHP file for example the default filetype is
There is not too much information in the PHP APC documentation about filtering files.
I have a functions.php file that has one PDO Connection i use to access
My server have default php version of 4, so when I run some script
Do PHP sessions timeout by default - ie without any coding on my part
PHP uses magic quotes by default but has gotten a lot of flak for
Is there any php fractal image generating library like stackoverflow's default avatar ? I
Is there a PHP method to fetch the default email of a user? same
My application structure is like this: application modules default student controllers forms studentParent.php models

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.