skip to Main Content

Change a filename – PHP

I want to change the name of a file. The source filename is changing all the time. The produced name mus be fixed. Here is mij script: <?php $directory = '/public_html/Weercam/FI9853EP_00626EA2E6A9/snap/'; foreach (glob($directory."*.jpg") as $filename) { $file = realpath($filename); rename($file,…

VIEW QUESTION
Back To Top
Search