Good person, I want to concatenate a string, put it at the end of the directory, which will be my path where saved images, each user has their folder on the server. I am not able to concatenate due to the bars that in the explorer is the opposite, if someone can help me I am grateful!
<?php
$nomepasta = "morto";
$base = $_REQUEST['image'];
$filename = $_REQUEST['filename'];
$binary = base64_decode($base);
header('Content-Type: bitmap; charset=utf-8');
$file = fopen(('UploadFotos/'.$nomepasta).$filename, 'wb');
$teste = 'UploadFotos\'.$nomepasta;
fwrite($file, $binary);
fclose($file);
echo $teste;