Skip to content

Instantly share code, notes, and snippets.

View flightblog's full-sized avatar

Steve Foster flightblog

View GitHub Profile
Large Object Motions:
(
)
{
}
[[
[]
][
]]
[m
@flightblog
flightblog / json_to_postgre.php
Created October 23, 2012 03:54 — forked from mexitek/json_to_postgre.php
Script to automate an import process from .json file to postgre DB.
<?php
# Configure
$DB_USER = 'admin';
$DB_PASS = 'qwerty';
$DB_HOST = 'localhost';
$DB_NAME = 'postgis-2-0';
// Param 3 when ran in shell will override this value
$DB_TABLE = 'public.florida_establishments_garman';
// Param 2 when ran in shell will override this value
$CATEGORY = 'misc';