I have generated a .txt file and FTP'd it to the tmp ftp directory setup in php.ini. I now need to move it to another location. I have tried to execute a linux command from within PHP to no avail.
Here is the section of code:
if (exec("cp -r /home/admin/merchantad.txt /home/httpd/vhosts/sunfriendlyproducts.com/httpdocs/merchantad_df/merchantad.txt") == TRUE)
{ print "FTP Successful!!!";}
else
{ print "There was a problem with the FTP and moving of the file!";}
unlink($source);
Any ideas on how to get this to work or another way to move or copy the file?
Thanks.