Skip to content

Instantly share code, notes, and snippets.

@nemanjan00 nemanjan00/diary.php
Created Aug 25, 2018

Embed
What would you like to do?
<?php
$dir = "~/projects/dnevnik/".date("Y")."/".date("m");
exec("mkdir -p ".$dir);
echo $dir."/".date("d").".md";
?>
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.