SHARE
TWEET

image

ikamal Nov 9th, 2019 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $path_array = wp_upload_dir(); // normal format start
  2.             $file_name   =   pathinfo($user_pic ,PATHINFO_FILENAME).time().".".pathinfo($user_pic ,PATHINFO_EXTENSION);
  3.             $imgtype     =   strtolower(pathinfo($user_pic,PATHINFO_EXTENSION));
  4.             $targetpath        =   $path_array["path"]."/".$file_name;
  5.            
  6.             move_uploaded_file($user_pic, $targetpath );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top