how do i copy a file from one folder to another??
i have tried using this:
$file='getpics.php'; $dest="archive/$id/"; if (!copy($file, $dest)) { echo "failed to copy $file...\n"; }
and i get this error
Warning: copy(archive/197/) [function.copy]: failed to open stream: Permission denied in
please help
nevermind, i figured it out!
here is the working code if anyone else runs into this same problem:
$file='getpics.php'; $dest="archive/".$id."/getpics.php"; if (!copy($file, $dest)) { echo "failed to copy $file...\n"; }