This topic is locked

Having issue passing variable

4/30/2011 2:52:41 PM
PHPRunner General questions
S
santonivich author

I need to move a file from one dir to another after data has been added.
in the event AFTER_RECORD_ADDED I have the following code"
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?
Thanks

Sergey Kornilov admin 4/30/2011

You need to post your application to Demo Account and open a ticket at http://support.xlinesoft.com sending your Demo Account URL. 'Demo Account' button can be found on the last screen in the program.