This topic is locked

rename, mv, or other???

4/28/2011 8:14:37 AM
PHPRunner General questions
S
santonivich author

First, I wanted to mention that the support on the forums have been fantastic!
I am populating a dropdown with file names that are stored in a specific path on the server. What I would like to be able to do is script an event so that when info is added to the database the filename is then MOVED to a different path.
I have tried to use the rename() command to know avail. Can anyone give me an idea on how to accomplish this?
Thanks so much.

Sergey Kornilov admin 4/28/2011

According to PHP manual rename() should do the job:

http://php.net/manual/en/function.rename.php
If you need more help 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.