You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
misc/shell_scripts/pmwiki

21 lines
319 B

#!/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';
?>