Can I use file_get_contents() to compare two files?

Posted by xdazzyy on Stack Overflow See other posts from Stack Overflow or by xdazzyy
Published on 2010-06-17T08:41:13Z Indexed on 2010/06/17 8:53 UTC
Read the original article Hit count: 112

Filed under:

I want to synchronize two directories. And I use file_get_contents($source) === file_get_contents($dest) to compare two files. Is there any problem to do this?

© Stack Overflow or respective owner

Related posts about php