• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need some PHP help

DaiShan

Diamond Member
So I need to upload an image then run a bash script with the uploaded image as the input. I've got some working code, but the problem is it only works for small files. If I try to upload anything more than a few kilobytes it just goes on forever at an extremely slow pace (less than 1 k/sec) We have a full duplex 10mbit at work and I normally get full throughput to that server so I think it has something to do with the code. I've got two files. index.html which simply uploads the file, then processing.php which gathers information about the file, and runs the shell script. *note* small files work fine, they send at a reasonable speed, it just seems like larger files start running into problems. In fact, when I click the upload button then issue the 'ls -al' command in the shell, it starts out uploading fine, but after a few seconds the size stays the same for probably 15 seconds then it starts getting larger slowly.


/edit Thanks in advance guys.
 
Originally posted by: Zugzwang152
check max_file_size and post_max_size to make sure they are set greater than your largest image.

Man this is the second time that you've come through for me. I'd set the upload_max_filesize, but I'd forgotten about the post_max_size. Once I changed that everything worked fine 🙂 Thanks a lot Zugzwang!
 
Back
Top