you can use the md5 function but you would need to set the file name before it is changed to what it should be
example
PHP Code:
$filename = 'global.inc'; //with out the extension!!!
$newfile = md5($filename);
$ext = '.php';
$location = 'path/to/file/';
$url = $location.$newfile.$ext ;
include($url);
// for the first run have it echo the md5 sum so you can rename your file accordingly
echo $newfile ;
but why do that when php code is converted to html on the client side anyways and none of the file paths or names are shown???
__________________
AMW_Drizz
Dev Machine:: Apache 2.2.6 PHP 5.2.6 MySQL 5.1
|