title: How to conver base64 to image php
body: <p>I have base64 data in <a href="http://pastebin.com/TZUeECM3" rel="nofollow">http://pastebin.com/TZUeECM3</a></p>
  
  <p>how can to convert its base64 to jpg or png and save in folder.
  here is my code</p>
  
  <pre><code>$filename_path = md5(time().uniqid()).".jpg";
  $decoded=base64_decode($base64_string);
  file_put_contents("uploads/".$filename_path,$decoded);
  </code></pre>