I have this code:
And I want to know if there is a way to add random numbers to the end of a code? If so, thanks.
PHP Code:
$rand = rand(1,9999999999);
$filename = $_FILES['site_url']['name']; // Get the name of the file (including file extension).
$filename = preg_replace('/\s/', '_', $filename);
$ext = substr($filename, strpos($filename,$rand,'.'), strlen($filename)-1); // Get the extension from the filename.

Comment