I am trying to use system() to move a file to a different directory. I dont know much about unix or using system() so am a little confused. When I try:
$results = system("mv $source_file $destination_file", $retval);
where $source_file = "/home/folder/folder/file.txt";
$destination_file = "/home/folder/file.txt";
nothing is returned to either variable and the file isnt moved. The server I'm running on is debian but it'll be used on red hat 9... if it makes a dif.