I have the following code
$image_path = $_FILES[\"p_image\"][\"name\"].time();
it names the file image02.jpg1335279888
image02.jpg1335279888
bu
You can check this one:
$file = $_FILES["p_image"]["name"]; $array = explode('.', $file); $fileName=$array[0]; $fileExt=$array[1]; $newfile=$fileName."_".time().".".$fileExt;