title: Adding Current time to filename of image in php
body: <p>I want to add current time to Image file name while saving into folder.</p>
  
  <p>For example: <code>4.02PMrose.jpeg</code></p>
  
  <p>My attempt:</p>
  
  <pre><code>&lt;?php
  
  $file = $_FILES['image']['tmp_name'];
  
  $image = addslashes(file_get_contents($_FILES['image']['tmp_name']));
  $image_name = addslashes($_FILES['image']['name']);
  
  move_uploaded_file($_FILES["image"]["tmp_name"], "photos/" . $_FILES["image"]["name"]);
  $location = "photos/" . $_FILES["image"]["name"];
  </code></pre>