I have a mysql timestamp which looks like this: 2016-08-31 21:54:33 . I need to use this timestamp in PHP touch: bool touch ( string $filename [, int $time = time() [, int $atime ]] )
How can I best convert into the int value needed in touch?
touch($file, strtotime($row['time']));- like this?SELECT UNIX_TIMESTAMP(your_time_field) ...