如何测试我的服务器是否为 curl 启用了安全模式?
How to test if my server has Safe Mode enabled for curl?
我试过这个:
<?php
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>
但是,什么代码可以让我测试是否为 curl 激活了安全模式?
if (ini_get('safe_mode')) {
// your code goes here
}
我试过这个:
<?php
echo '<pre>';
var_dump(curl_version());
echo '</pre>';
?>
但是,什么代码可以让我测试是否为 curl 激活了安全模式?
if (ini_get('safe_mode')) {
// your code goes here
}