Bluimp and PHP
Iam using the bluimp upload library to upload my CSV files which have huge data and after upload the data will be inserted into the database. Iam trying to upload like 10 files at a time. And this gives me a error.
xampp is killed and getting the error
"mysqli_connect(): (HY000/2002): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full."
I observed that bluimp is trying to upload 6 files at a time. How to make it process 1 file at a time.
Related
Please any one tell me how to upload file more than 500mb at amazon s3 bucket ,because i am uploading file less than 500mb (like 470mb or 430mb) it's working fine but when upload 600mb 700mb file then show error .and the error is
A PHP Error was encountered
Severity: User Warning
Message: S3::inputFile(): Unable to open input file:
Filename: libraries/S3.php
Line Number: 224
when i run the phpinfo() function then show the same settings at these below.
My php.ini settings are
1. upload_max_filesize=2048M
2. post_max_size=2048M
3. max_execution_time=3000 (50 minutes)
4. memory_limit=1024M
file read is 100% but when goes to write then shows error.I don't know where is the problem.
Thank's
I have a case where I upload an SQLite DB to Laravel to be parsed for the data within. I am currently using Homestead for this project.
When I upload an SQLite db sized under a MB, all seems alright. As soon as I upload a DB that is 2MB I get this error:
SQLSTATE[HY000]: General error: 10 disk I/O error
What can be the trouble here? Is this a Homestead thing? The physical HD has plenty of space so it isn't a space problem. I've checked the permissions on the directory the file is being read from and the permissions are alright. Any ideas?
I've got a fairly simple cron job that pulls down some files from an FTP server - none of the files are particularly large, but I'm constantly getting the following:
Connected to voip.colefabrics.com, for user colefabrics\absolute
Warning: ftp_get(): Opening BINARY mode data connection. in /home/www/colefabrics.com/httpdocs/libs/classes/class.ftpObj.php on line 56
There was a problem while downloading website/items.csv
Attempt 2:
Connected to voip.colefabrics.com, for user colefabrics\absolute
Warning: ftp_get(): Opening BINARY mode data connection. in /home/www/colefabrics.com/httpdocs/libs/classes/class.ftpObj.php on line 56
There was a problem while downloading website/items.csv
...snip...
I've been through all the other posts relating to this, tried to enforce passive mode, increased the timeout, but nothing is working.
Does anyone know what might be causing this, and what I can do to try and resolve it?
To confirm, it's working fine via a 'normal' FTP client, it's only via PHP that I have a problem.
I have a script where user can attach file to the record. File is stored separately (not in a database). When user does not attach file and click on "Save record" it works fine. When user attaches file it does next steps:
File uploads correct
Script takes from DB record details using Idiorm
Script updates field "filesize" on the record (I tested script without this step - same result)
Script tries to save record, and I get this:
PDOException
Code: HY000
Message: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
File: /home/../includes/idiorm.php
Line: 1675
How can it be solved?
Update:
I found out 2 things:
script returns "General error: 2006 MySQL server has gone away" only when uploaded file is bigger than 20 Mb and I try to update database with Idiorm_record->save().
script does not return "General error: 2006 MySQL server has gone away" when uploaded file is bigger than 20 Mb and I do not try to update database.
I can upload file bigger than 20 Mb and run query generated by Idiorm_record->save() with Idiorm::raw_exec() and catch no error.
Does it mean that problem connected with Idiorm?
The Problem was the "wait timeout" setting in MySQL. But still is interesting why plain sql works fine and update via save method on Idiorm object causes delay that Mysql goes away.
I am getting this error. What does it mean?
Warning: imagejpeg(): Unable to open
'/home/content/59/.../images/___htmlthumbnail_0b1292bbbcc4199eb4f50651962cf4641329752862.jpg'
for writing: File too large in
/home/content/59/.../cms/classes/resize.class.php on line 50
This is what happens.
Big image is uploaded
Big image - if too big - is resized to
the correct dimensions.
4 thumbnails are created.
Step 1 is working fine. The main image is being uploaded. The problem is coming with creating the thumbnails. The script is failing here.
imagejpeg($this->image,$filename,$compression);
This error is only happening on one server. We deploy our script to hundreds of servers a year. I just cannot find out what this error means. The file is uploading fine so I don't see why it is too large. If the server was running out of memory it would have a memory error surely.
The image I am uploading isn't even particularly big. Its 33KB. 780 x 120px.
Has anyone seen this error before? I assume something server side needs to be adjusted as the script works just fine every where else.
check php.ini settings... if you don't have the access contact the support i'm sure they will help you out...