Skip to content

Instantly share code, notes, and snippets.

View henryci's full-sized avatar

Henry Cipolla henryci

View GitHub Profile
<?php
# I ran this on a virtualized server, so accessing the filesystem directly wasn't a risk.
# I would not recommend this any other way.
$basedir = "/home/henryci/posttestserver.com/data/";
$filedir = "/home/henryci/posttestserver.com/files/";
# Enable CORS
header('Access-Control-Allow-Origin: *');