note 130016 added to function.date

From: Date: Mon, 10 Feb 2025 12:18:29 +0000
Subject: note 130016 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-221838@lists.php.net to get a copy of this message
We can create a function: function autenticar($id, $password){ global $datos; if (!array_key_exists($id, $datos)){ return false; } return password_verify($password, $datos[$id]['clave']); } Too a cookie and date in gmdate: setcookie('jwt', $jwt, time() + 2 * 60 * 60, '/'); $_SESSION['inicio'] = gmdate('M d Y H:i:s', time()); ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 87.223.131.201) ---- Manual Page -- https://php.net/manual/en/function.date.php Edit -- https://main.php.net/note/edit/130016 Del: integrated -- https://main.php.net/note/delete/130016/integrated Del: useless -- https://main.php.net/note/delete/130016/useless Del: bad code -- https://main.php.net/note/delete/130016/bad+code Del: spam -- https://main.php.net/note/delete/130016/spam Del: non-english -- https://main.php.net/note/delete/130016/non-english Del: in docs -- https://main.php.net/note/delete/130016/in+docs Del: other reasons-- https://main.php.net/note/delete/130016 Reject -- https://main.php.net/note/reject/130016 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221838) next »