PHP Upload Files Settings

Posted on 2004-11-22
Last Modified: 2013-12-12
I have installed PHP 4.3.9 and MySQL 4.1.7 on my Windows XP system using an IIS5.1 server.
I am using an upload program using PHP code called SLMan. I am uploading 16MB mp3 files and these are my php.ini settings.

upload_max_filesize = 30M
post_max_filesize = 32M
max_input_time = 1800
max_execution_time = 1800

I cannot upload files of more than 1MB without getting a 'MySQL server has gone away' error message. I wanted to make sure I have all my PHP settings correct before asking the Experts about the MySQL message. Are these settings all I need to set in the php.ini file ?
Question by:mhoggatt1
    1 Comment
    LVL 9

    Accepted Solution

    Settings are fine. Problem is in mysql timeout. I don't recommend storing large files in your database. Use filesystem instead and store only path info in your database.


    Tip: Moving large database to a different host can be frustrating experience if you don't have root access to your server. That is not the case when using filesystem and you can use FTP to move them to annother server.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Easy Project Management (No User Manual Required)

    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

    Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now