Home ·  HTML ·  Javascript ·  CSS ·  PHP ·  MySQL ·  Stripe ·  AuthNet ·  Unix ·  Server ·  Email ·  GIFs ·  PNGs ·  SVGs ·  Video ·  Misc · 
Color Wheel
Structure ·  Pre-<html> ·  Head ·  Meta ·  Charset ·  Favicons ·  CSS ·  Javascript ·  Body ·  Header ·  Content ·  Footer ·  Misc ·  Notes · 
 
 Put this at the top of the php page - after any headers
declare(strict_types=1);
ini_set("session.gc_maxlifetime",3600);
session_start();
include("../class/db.class.php");





<!DOCTYPE html>
<html lang="en">
 
 declare(strict_types=1);
 
 disables implicit type coercion (automatic type casting) for function arguments and return types. When enabled, PHP will throw a TypeError if the data type of a passed argument or returned value does not exactly match the declared type hint.
 
ini_set("session.gc_maxlifetime",3600);
 
 Sets the clock for the countdown 3600 seconds/4 hours before the page logs them out
 
 session_start();
 
 starts the session so session variables are available to the page
 
 include("../class/db.class.php");
 
 include files next - typically classes (database, user, admin, wm, etc)
need to include them first before initializing them
 
 
 
 
 
 
 
 
 
 
Time Left: 01:00:00  
12px