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
> -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
> -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
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.
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
> -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<
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
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))
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
9 matches
Mail list logo