I need to move a file from one dir to another using a php script.
I have the following code embeded in a script that gets execuded after someone fills out a form online.
rename ("/httpd/customers/virtual/mydomain.com/htdocs/morning_podcasts/" . $values["file_name"] . "","/httpd/customers/virtual/mydomain.com/htdocs/podcasts/" . $values["file_name"] . "");
I get the following PHP ERROR description:
rename(/httpd/customers/virtual/mydomain.com/htdocs/morning_podcasts/,/httpd/customers/virtual/mydomain.com/htdocs/podcasts/) [function.rename]: No such file or directory
So, I am guessing I do not have the correct syntax for passing the file_name field from the form. Any recommendations?