How do I set the max_file_size variable for uploads in PHP ?

Posted on 2004-11-21
Last Modified: 2008-03-17
Is the max_file_size variable in the php.ini file and what section is it in. I haven't been able to locate it.
Question by:mhoggatt1
    LVL 48

    Assisted Solution

    There is no configuration option max_file_size that would be evaluated in php.ini. There isn't also a max_file_size option for mysql. For which purpose do you want to set that value ??
    LVL 15

    Accepted Solution

    The name of the directive is 'upload_max_filesize', it is in the 'files upload' section of php.ini

    PS: this Topic area is intended for questions about the MySQL database.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (, A SQLite Tidbit: Quick Numbers Table Generation (…
    Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now