Add domframework tools (for cli use)
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2650 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
1
tools/.htaccess
Normal file
1
tools/.htaccess
Normal file
@@ -0,0 +1 @@
|
|||||||
|
deny from all
|
||||||
15
tools/dbjsonDecode.php
Executable file
15
tools/dbjsonDecode.php
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/php5
|
||||||
|
<?php
|
||||||
|
if (! isset ($argv[1]))
|
||||||
|
die ("No file to decode provided\n");
|
||||||
|
|
||||||
|
$file = $argv[1];
|
||||||
|
if (! file_exists ($file))
|
||||||
|
die ("File $file not found\n");
|
||||||
|
if (! is_readable ($file))
|
||||||
|
die ("File $file not readable\n");
|
||||||
|
if (! is_writeable ($file))
|
||||||
|
die ("File $file not writeable\n");
|
||||||
|
|
||||||
|
print_r (json_decode (file_get_contents ($file)));
|
||||||
|
|
||||||
Reference in New Issue
Block a user