fopen, fread, fwrite fclose in PHP vs copy/robocopy
Posted on 2013-11-05
I am wondering the mechanism behind the fopen, fread, fwrite, and fclose with PHP vs copy/robocopy command from window.
I can "copy" file either by fopen, fread... etc. and exec() by implmenting copy/robocopy into the PHP code.
I wish to know Pros and Cons of each and if there are restrictions with each process.
My goal is to copy DBF file from source location over to my destination. If there is a program that access the DBF, I wish to know what is the safest way to do the file copy as in fopen or the copy/robocopy? Thanks