note 45604 modified in function.md5-file by aidan

From: Date: Mon, 13 Sep 2004 01:39:52 +0000
Subject: note 45604 modified in function.md5-file by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76570@lists.php.net to get a copy of this message
Here, exactly as it is in PHP itself: <?php if (!function_exists('md5_file')) { function md5_file($file) { if (!file_exists($file)) { trigger_error('md5_file(): Unable to open file', E_USER_WARNING); } else { return md5(file_get_contents($sFilename)); } } ?> --was-- Here, exactly as it is in PHP itself: <?php if(!function_exists('md5_file')) { function &md5_file($sFilename) { if(!file_exists($sFilename)) { trigger_error('md5_file(): Unable to open file', E_USER_WRANING); } else { return md5(file_get_contents($sFilename)); } } echo md5_file('gieljjsjss.php'); ?> http://php.net/manual/en/function.md5-file.php

« previous php.notes (#76570) next »