OK, at the moment, my script for free image hosting, renames all files uploaded to completely random numbers.
Here is the code it uses for the random numbers:
and here is the code for the name that it gathers (something like that)
So, Basically;
User Selects image 'banner.jpg' ($name)
User Presses Upload, and it renames it to something like 287193.jpg
how do I change it so:
User Presses Upload, and it renames it to something like bann282.jpg (or even banner928.jpg)?
I hope I made myself clear
Here is the code it uses for the random numbers:
Code:
{
$number2 = rand(0,100000000) . substr($name, -5, 5);
}
else
{
$number2 = rand(0,100000000) . substr($name, -4, 4);
}
and here is the code for the name that it gathers (something like that)
Code:
$name
User Selects image 'banner.jpg' ($name)
User Presses Upload, and it renames it to something like 287193.jpg
how do I change it so:
User Presses Upload, and it renames it to something like bann282.jpg (or even banner928.jpg)?
I hope I made myself clear