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

  iis, laravel, windows-server-2008-r2

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
enter image description here

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

Source: Laravel

Leave a Reply