[ad_1]
Just remove the space
$path = "data/users/".$user_id."/documents/ ".$_GET['id']."https://stackoverflow.com/".$new_name.".".$extn;
^HERE
1
[ad_2]
solved How to remove space between variable and string in php?