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

  • SEARCH
  • Home
  • 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 8403601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:23:15+00:00 2026-06-09T22:23:15+00:00

I am using cakephp 2.x and in order to do file uploads, I have

  • 0

I am using cakephp 2.x and in order to do file uploads, I have set the following variables to custom values that I found on the internet.

upload_max_filesize    = 110MB
max_post_size          = 120MB
max_execution_time     = 10800 (seconds)
max_input_time         = 10800 (seconds)
session.gc_maxlifetime = 10800 (seconds)

What I need help with is understanding if all of these variables need to be changed in order to allow the uploading of files with sizes that range from 30 MB to 105 MB.

I understand the upload_max_filesize, and that max_post_size is the size of the posted information, including the file and any forms and other data.

What exactly do the other 3 mean? Does the execution time include the time it takes to upload? Same question with the input time. What exactly does the last variable (session.gc) do?

Be aware that I searched the internet for the changes required to allow for large file uploading, and I did the same changes that the site showed, so no comments or questions as to why I made those changes. I just followed what someone else did to upload large files. If I can find the site I will update this question with a link to it.

PLEASE, don’t just post the definition of the variables. I was able to find those online too, the only reason I posted this question is because I am having a hard time understanding how they relate to file uploading.

Thanks

  • 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-06-09T22:23:17+00:00Added an answer on June 9, 2026 at 10:23 pm

    All this parameters are related to the php function ini_set().

    A list of all configuration options can be found in the PHP documentation Appendix / List of php.ini directives.

    max_execution_time integer: This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. This helps prevent poorly written scripts from tying up the server. The default setting is 30. When running PHP from the command line the default setting is 0.
    The maximum execution time is not affected by system calls, stream operations etc. Please see the set_time_limit() function for more details.
    You can not change this setting with ini_set() when running in safe mode. The only workaround is to turn off safe mode or by changing the time limit in the php.ini.
    Your web server can have other timeout configurations that may also interrupt PHP execution. Apache has a Timeout directive and IIS has a CGI timeout function. Both default to 300 seconds. See your web server documentation for specific details.

    max_input_time integer: This sets the maximum time in seconds a script is allowed to parse input data, like POST and GET. It is measured from the moment of receiving all data on the server to the start of script execution.

    session.gc_maxlifetime integer: session.gc_maxlifetime specifies the number of seconds after which data will be seen as ‘garbage’ and potentially cleaned up. Garbage collection may occur during session start (depending on session.gc_probability and session.gc_divisor).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im using cakephp 2.0 and i have data submitted that i want to cleanup,
I'm using CakePHP 2.1 I have following fields in database. id views max_views I
I'm using CakePHP 2.0. I have 2 models/controllers (Category/Coupon): // File: Model/Coupon.php // Table
Im using cakePHP 2.2.1 I have a GoalsController that has an add action in
Using CakePHP 1.3 , I have a (working) form that has dynamically created form
I'm using cakephp 2.1.3 and I have a table Ingredients and a table IngredientAliases
I have been using Alaxos CakePHP ACLplugin for my site, which is great. However,
Using cakephp, I have a generic address table, which I want to link to
I am writing a CakePHP 1.2 app. I have a list of people that
Using CakePHP, I am finding that I'm duplicating some code between controller actions. I

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.