Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (substr(php_uname(), 0, 7) == "Windows"){
- $cmd = "start /B php AsynchronDownload.php fileids=".$this->header->queryParams['ids'] . " uid=".$this->header->tokenData->uId . " groupId=".$this->header->tokenData->groupId . " timestamp=".$this->header->tokenData->timestamp . " state=".$this->header->tokenData->state. " token=".$this->header->tokenData->token;
- pclose(popen($cmd, "r"));
- } else {
- $cmd = "/usr/bin/php7.2-cli AsynchronDownload.php fileids=".$this->header->queryParams['ids'] . " uid=".$this->header->tokenData->uId . " groupId=".$this->header->tokenData->groupId . " timestamp=".$this->header->tokenData->timestamp . " state=".$this->header->tokenData->state. " token=".$this->header->tokenData->token;
- exec($cmd . " > /dev/null &");
- }
Add Comment
Please, Sign In to add comment