Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (6 sloc) 194 Bytes
<?php
// get task data via cli argument.
if (empty($argv[1])) exit("Need task data. Exit\n");
$data = unserialize(base64_decode($argv[1]));
// do a task..
file_put_contents('log.txt', $data);