Answers for "php save image with timestamp"

PHP
1

put img in timestamp using php

$ext = explode('.', $image_name);
            $file_name = $ext[0];
            $file_ext = $ext[1];
            $new_file = $file_name . '_' . time() . '.' . $file_ext;        //time() returns unix format
Posted by: Guest on September-09-2021

Browse Popular Code Answers by Language