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
Php 5.2 Mysql 4.1 IIS 6 Win2k3 Server && PHP 5.2 MySQL 4.1 Apache 2.2 (separate machine of course)
|