September 2nd, 2000, 08:14 PM
How can I move a file? Say like when a user signs up, I want to copy a script to thier directory, how could I do that?
Many thanks in Advance!
September 2nd, 2000, 08:24 PM
if you're on unix, maybe use the exec() function or backticks and just manually move the file(s) over, be sure to use escapeShellCmd()
or maybe the copy() function
[This message has been edited by RyanP (edited September 02, 2000).]
September 2nd, 2000, 08:32 PM
I am on a Linux system, and I am really stuck. It's probably really simple.
September 2nd, 2000, 09:22 PM
Why yes it is very simple, just use chdir() to get to the dir containhing the file you want to move then use copy($thefile, $destdir);
Where $destdir is set to something like
Make sure to include the filename of the destination file where you want to copy it to