timezone must define first
date_default_timezone_set('Asia/Hong_Kong');
$today = date("Y-m-d h:i:s");
pathinfo($filename, PATHINFO_EXTENSION);
timezone must define first
date_default_timezone_set('Asia/Hong_Kong');
$today = date("Y-m-d h:i:s");
pathinfo($filename, PATHINFO_EXTENSION);
Let's focus on code structure and logic
Syntax changed all the time, in every language.
I confess I can't memorize them all.
Piece of codes were kept here for my own emergency.
timezone must define first date_default_timezone_set('Asia/Hong_Kong'); $today = date("Y-m-d h:i:s"); pathinfo($filename, ...