Skip to content

Instantly share code, notes, and snippets.

@oshanz
Created January 30, 2014 09:45
Show Gist options
  • Save oshanz/8705437 to your computer and use it in GitHub Desktop.
Save oshanz/8705437 to your computer and use it in GitHub Desktop.
php file
if (!is_dir('uploads/')) {
mkdir('./uploads/', 0777, TRUE);
}
$fopen = fopen('./uploads/' . $date_time . '-' . $date . '.json', "w+");
$fwrite = fwrite($fopen, $_REQUEST['jsonString']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment