added personal scripts
This commit is contained in:
Executable
+20
@@ -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';
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user