namespaceId)) { $parts = str_split( base64_encode( file_get_contents($argv[2]) ), isset($argv[3]) && $argv[3] <= 3072 ? (int) $argv[3] : 3072 // 3072 bytes limit ); foreach ($parts as $key => $value) { $kevaPut = _exec( $argv[1], sprintf( '%s %s %s %s', 'keva_put', $kevaNamespace->namespaceId, $key, $value ) ); print_r($kevaPut); $delay = isset($argv[4]) ? (int) $argv[4] : 60; echo sprintf( '%s/%s sent, waiting %s seconds...' . PHP_EOL, $key + 1, count($parts), $delay ); sleep($delay); } echo sprintf( 'done! run to extract: php kevacoin/get.php %s %s' . PHP_EOL, $argv[1], $kevaNamespace->namespaceId ); }