#### copy() function doesn’t run on laravel running on iis server

I have a problem sending data over a network share. I have a copy() function running in Controller. The laravel script I have is as follows which is running on the iis server. Example :

$src = 'D:testtes.txt';$dst = '\192.168.1.207SourceIn_tes.txt';
copy($src,$dst);


Here are the results

And strangely if I use the script using native php it runs without laravel

Source: Laravel