I am trying to save a file over a mapped network, my PHP script is on server like "111.123.5/file" here and I am trying to save file in mapped network like "//123.222.333.01/getfile" but it it not storing.
rather than storing on mapped network it stored in the same directory where PHP script is hosted.
P.s: I am saving an image on mapped network. also I have full access/permission in both directory.
$filename_path = md5(time().uniqid()).".jpeg";
// replacing data:image/jpeg;base64, from post request as It is not required for making Image
$base64_string = str_replace('data:image/jpeg;base64,', '', $base64_string);
$base64_string = str_replace(' ', '+', $base64_string);
$decoded = base64_decode($base64_string);
//defining path
file_put_contents("//123.222.333.01/getfile/".$filename_path,$decoded);