Mukhlis Saputro
Mukhlis Saputro

Reputation: 189

Copy File With PHP By copy() function so slow

I use windows 7 ultimate and xampp in my computer. I use copy() function to copy file with PHP. But, When I tested it with same device and same file, copy function from Windows Explorer Faster than when I copy file with php by copy() function.

(525MB take about 5minutes with Windows Explorer and 25Minutes With PHP, my files located in HTDOCS folder. And the destination is Flashdisk).

Is there anyway to make copy() function in php more fast? Or maybe is there any other function to copy file in php that run faster?

Thank you anyway.

Upvotes: 1

Views: 1031

Answers (1)

Mukhlis Saputro
Mukhlis Saputro

Reputation: 189

I Have tested it Manytimes, And I get That's Hardware Solution. Although, Yes! php copy function slower than explorer. I think because it call by function in function to check is object file or folder.

SIMACO : Copy by My Program Windows Explorer : Copy by File Explorer Windows

enter image description here

Upvotes: 1

Related Questions