Skip to content

Instantly share code, notes, and snippets.

View elwynynion's full-sized avatar
:shipit:
I may be slow to respond.

Elwyn Ynion elwynynion

:shipit:
I may be slow to respond.
View GitHub Profile
@elwynynion
elwynynion / one-way-mysql.sql
Created June 21, 2022 05:11 — forked from cballou/one-way-mysql.sql
Securing Your PHP Sessions with a Salt (old, use bcrypt)
CREATE TABLE `secure_login` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`email` VARCHAR(120) NOT NULL,
`password` VARCHAR(40) NOT NULL,
`session` VARCHAR(40) DEFAULT NULL,
`disabled` TINYINT(1) UNSIGNED DEFAULT 0,
`created_dt` DATETIME DEFAULT '0000-00-00 00:00:00',
`modified_ts` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE INDEX `uniq_idx` (`email`)
@elwynynion
elwynynion / index.php
Created December 17, 2021 01:36 — forked from oriolrivera/index.php
Simple Chat Using WebSocket and PHP Socket
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8' />
<style type="text/css">
<!--
.chat_wrapper {
width: 500px;
margin-right: auto;
margin-left: auto;