RE: [PHP] Comparing files

2008-03-12 Thread Thijs Lensselink
Quoting Andrés Robinet <[EMAIL PROTECTED]>: -Original Message- From: Edward Kay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 7:13 AM To: mathieu leddet; php-general@lists.php.net Subject: RE: [PHP] Comparing files > -Original Message- > From: ma

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
> -Original Message- > From: Andrés Robinet [mailto:[EMAIL PROTECTED] > Sent: 12 March 2008 12:33 > To: 'Edward Kay'; 'mathieu leddet'; php-general@lists.php.net > Subject: RE: [PHP] Comparing files > > > > -Original Message

RE: [PHP] Comparing files

2008-03-12 Thread Andrés Robinet
> -Original Message- > From: Edward Kay [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2008 7:13 AM > To: mathieu leddet; php-general@lists.php.net > Subject: RE: [PHP] Comparing files > > > > > -Original Message- > > From: mat

RE: [PHP] Comparing files

2008-03-12 Thread Per Jessen
mathieu leddet wrote: > Yes! > > Thanks a lot, "md5_file" suits perfectly well my needs. > I've read that 'exec'ing the md5 command is faster... I'll see when > performance on large files will become an issue. > Doing a diff on the files would make absolutely certain - an md5 checksum is not.

RE: [PHP] Comparing files

2008-03-12 Thread mathieu leddet
k [mailto:[EMAIL PROTECTED] Envoyé : Wednesday, March 12, 2008 12:09 PM À : php-general@lists.php.net Objet : Re: [PHP] Comparing files Quoting mathieu leddet <[EMAIL PROTECTED]>: > Hi all, > > I have a simple question : how can I ensure that 2 files

RE: [PHP] Comparing files

2008-03-12 Thread Edward Kay
> -Original Message- > From: mathieu leddet [mailto:[EMAIL PROTECTED] > Sent: 12 March 2008 11:04 > To: php-general@lists.php.net > Subject: [PHP] Comparing files > > > Hi all, > > I have a simple question : how can I ensure that 2 files are identical ? > > How about this ? > > 8<

Re: [PHP] Comparing files

2008-03-12 Thread Aschwin Wesselius
mathieu leddet wrote: Hi all, I have a simple question : how can I ensure that 2 files are identical ? How about this ? 8<-- function files_identical($path1, $path2) { return (file_get_contents($path1) == file_get_contents

Re: [PHP] Comparing files

2008-03-12 Thread Stut
mathieu leddet wrote: I have a simple question : how can I ensure that 2 files are identical ? How about this ? 8<-- function files_identical($path1, $path2) { return (file_get_contents($path1) == file_get_contents($path2))

Re: [PHP] Comparing files

2008-03-12 Thread Thijs Lensselink
Quoting mathieu leddet <[EMAIL PROTECTED]>: Hi all, I have a simple question : how can I ensure that 2 files are identical ? How about this ? 8<-- function files_identical($path1, $path2) { return (file_get_contents($path1) == fi