added personal scripts

This commit is contained in:
Fabien Benetou
2011-07-12 23:26:49 +02:00
parent 8a3d5f4c40
commit d37fcfdce1
28 changed files with 375 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/php -q
<?php
//to query the local PmWiki via the CLI
if (!chdir("~/web/benetou.fr/fabien/"))
die("chdir failed.");
if ($argc > 0)
{
for ($i=1;$i < $argc;$i++)
{
parse_str($argv[$i],$tmp);
$_REQUEST = array_merge($_REQUEST, $tmp);
}
}
require_once '~/web/benetou.fr/fabien/pmwiki.php';
?>