To move a file in PHP, you can use the rename() function which takes two arguments - the source file and the destination file.
Here's an example:
main.php288 chars15 lines
Make sure that the file has the necessary permissions and that the destination directory exists before running this code.
gistlibby LogSnag