Will this work, and if not how do I do this.
if (copy($file, $desta) & rename($file, $destb) { echo "Success!";}else{die("unable to complete the selected task.");}
Thank, Steve
No, because you're missing a ) and another &. Other than that, yes.
Look at the man page [man]operators.logical[/man] to see what I mean by "another &".
I like to think I would have caught the missing ) but thank for the heads up about the &