normall its 343filename
with my modification it its 34-filname
so its more human readable and better for some search engines
i am not a good coder, so i did not find a simple way to let the 3 random digits AND add a simple -.
so here are only 2 random digits (we could perhaps include a timestamp in the filename of the uploaded file... like this 2011-04-19_21-01-23_filename... what do you think about??)
$randName1 = rand('11','99');
$fancyurl = $randName1."-";
- Code: Select all
$filename = stripslashes("$filename");
$filesize = $_FILES['upfile']['size'];
$randName1 = rand('11','99');
$fancyurl = $randName1."-";
$rand2=("$fancyurl$filename");
$m=$shourturl;
if ($m=="true")
$short= "";
else
$short= "download.php?file=";
$bans=file("./secure/bans.dfh");
foreach($bans as $line)