Skip to content

Instantly share code, notes, and snippets.

@oshanz oshanz/php file
Created Jan 30, 2014

Embed
What would you like to do?
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
You can’t perform that action at this time.