Last active
March 27, 2016 09:48
-
-
Save gbirke/3818892 to your computer and use it in GitHub Desktop.
Show DokuWiki meta files in shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
/** | |
* Show DokuWiki meta data on the command line | |
* | |
* @author Gabriel Birke <[email protected]> | |
*/ | |
$file = $argv[1]; | |
if(!file_exists($file)) { | |
die("$file not found.\n"); | |
} | |
$meta = unserialize(file_get_contents($file)); | |
print_r($meta); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment