Jump to content

Recommended Posts

I posted this in the PHP forum and then thought I should have posted this in the MySQL forum. 

 

I created an upload script which works fine with smaller files.  When I try to upload a larger file I get MySQL server has gone away.

 

???

 

I did a little research and saw that it may be the max_allowed_packet size on the MySQL server so I set it to 160000000, but I still get the same error.

 

Any help would be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/67223-php-upload-mysql-server-has-gone-away/
Share on other sites

Well, I am trying to make a document manager in PHP and MySQL and I asked around in the forums and was told that to secure the documents that I should put them in the database versus the files system.

 

I am using PHP 5 and MySQL 5.1 on Windows IIS 6.  I want the documents to only be accessed by authorized users and am kinda new to hand coding (Versus using my old crutch Dreamweaver). 

 

Is there a better way to do this in the file system, yet still secure them versus putting them in the database?

 

Thank you for any knowledge you can pass along!

Depends whom you're trying to secure them against... anyone with root access will have access anyway.  So how would anyone else "get at" the files, if they didn't know the path, which (obviously) to to a non-web accessible directory?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.