我有一个Powershell脚本,用于查找过去24小时内在某个文件夹中创建的文件,然后查找某些文件名,然后将其输出到文件夹。我想输出到一个hipchat房间,但我在传递变量时遇到了麻烦。我的代码如下:
curl_setopt($connection, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($connection, CURLOPT_USERPWD, $username . ":" . $password);
我正在尝试将$ var2传递到第二个数组,但我的消息变成了空白。谢谢。