SyntaxFix
Write A Post
Hire A Developer
Questions
Create a function to move it:
function move_file($file, $to){ $path_parts = pathinfo($file); $newplace = "$to/{$path_parts['basename']}"; if(rename($file, $newplace)) return $newplace; return null; }