我只是清理已安装的Laravel,并且不仅在安装时,而且在运行write-host "This will delete data, type YES to continue"
$retval = read-host
if ($retval -ne "YES")
{
write-host "exiting - you did not type yes" -foregroundcolor green
exit
}
write-host "continuing"
$web = get-spweb https://urlToTheYourSite
$list = $web.lists | where {$_.title -eq "YourListNameToDelete"}
Write-host "List $($list.title) has $($list.items.count) entries"
$items = $list.items
foreach ($item in $items)
{
Write-host " Say Goodbye to $($item.id)" -foregroundcolor red
$list.getitembyid($Item.id).Delete()
}
时收到以下消息:
putenv()因安全原因被禁用
问题是,我已启用composer update
,我已将其从PHP中的putenv()
指令中删除,甚至在测试文件中运行以下代码段:
disable_functions
它输出&#34; putenv确实已启用&#34;。因此<?php
if (putenv("TESTENV=yes")) {
echo 'putenv is indeed enabled.';
}
已启用,但由于某些原因,工匠和Laravel仍然无法使用它。
Laravel是否在应用程序级别禁用它?