我有一个脚本来提取这样的存储库
<?php
function execPrint($command) {
$result = array();
exec($command, $result);
foreach ($result as $line) {
print($line . "\n");
}
}
print("<pre>" . execPrint("git pull https://username:password@gitlab.com/repo/dummy-hooks.git master") . "</pre>");
?>
我一直尝试在自己的VPS上运行良好,但是当我尝试共享主机时则无法正常运行..
有人可以帮助我吗?