Handling large files on a server with PHP
Get the solution ↓↓↓I have had my shared web server suspended twice now for moving large files with a self-built php CMS using copy(). The admins told me that I had used up all the read/write bandwidth on the machine and that PHP is very inefficient at moving files.
I want to be able to move these files via a web interface in my CMS. Is there a way I can do this without bogging down the server?
Answer
Solution:
Use rename. This will just change the place in the filesystem, not copy the entire contents of the file, and therefore is much more efficient.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: uncaught error: call to undefined function mysqli_connect()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.