I am not good with php ,I want to 'concatenate` a url, I want to add a time of millisecond at the end of it so the url be unique.
the full url is like this: http://www.justedhak.comlu.com/images/uploaded_images1.jpg
I want everytime add millisecond time to uploaded_images1
the desire result like this
...images/uploaded_images3214100.jpg
...images/uploaded_images3321490.jpg
...images/uploaded_images5216100.jpg
...images/uploaded_images6328490.jpg
I guess I have to add round() to $imagename ?this is my code
$con = mysqli_connect($host,$uname,$pwd,$db);
$image=$_POST['image'];
$imagename="uploaded_images.jpg";
$imageurl="http://justedhak.comlu.com/images/."$imagename"";
$binary=base64_decode($image);
header('Content-Type: bitmap; charset=utf-8');
$file = fopen($imagename, 'wb');
fwrite($file, $binary);
fclose($file);
$sql = "insert into image (description,categorie,path) values ('$categorie','$description','$imageurl')";