Open nickbreen opened 8 years ago
I.e.
static protected function fetch_tarball($url, $auth = NULL) { if ($auth) $auth = "-u ${auth}"; // TODO pure PHP return shell_exec("echo -n $(readlink -n -f .)/; curl -sfLJO -w '%{filename_effective}' ${auth} ${url}"); }
Rather proc_open or whatever would be better for piping stuff into tar.
proc_open
tar
PharData is the PHP class for manipulating tar's
PharData
I.e.