I'm trying to create a php script that will copy a file from my build directory to another directory. I've been trying the copy() function without luck. Here's what I've tried:
$source_file = '../build/index.php';
$dest_file = '../prod/index.php';
copy($source_file, $dest_file);
This doesn't seem to be working for me.....any suggestions?
Thanks