how do I clone and rename a file with php.
I need to take.
thumb_123.jpg
Copy it.
Rename it to thumb_456.jpg
I can do the renaming just fine with rename()
. Its the copying that I don't get.
copy('thumb_123.jpg','thumb_456.jpg')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With