if(!file_exists('./Public/upload_img/')){
mkdir('./Public/upload_img/');
echo 'ok';
}else{
echo 'no';
mkdir('./Public/upload_img/');
}
$a=move_uploaded_file($_FILES['image']['tmp_name'],'./Public/upload_img/'.$_FILES['image']['name']);
if($a){echo 'ok';
}else{
echo 'no';
}
base64
$file=file_get_contents('./Public/cars.jpg');
$path='./Public/upload_img1/';
if(!file_exists($path)){
mkdir($path);
}
$img=base64_encode($file);
//$su=str_replace(' ','+',$img);
$seconde=base64_decode($img);
$a=file_put_contents($path.time().'.jpg',$seconde);
if ($a) {
echo 111;
}else{
echo 'shibai';
}