我在我的页面上收到此错误:
警告:出于安全原因,exec() 已在第 2036 行的 /home/a2297145/public_html/android/index.php 中被禁用
这是代码:
//
// Determine the size of a file
//
public static function getFileSize($file)
{
$sizeInBytes = filesize($file);
// If filesize() fails (with larger files), try to get the size from unix command line.
if (EncodeExplorer::getConfig("large_files") == true || !$sizeInBytes || $sizeInBytes < 0) {
$sizeInBytes=exec("ls -l '$file' | awk '{print $5}'");
}
return $sizeInBytes;
}
Run Code Online (Sandbox Code Playgroud)
你能帮我解决这个问题吗?
如何让WebView在WebView本身而不是浏览器中打开链接?
这是我的代码:
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dsaif);
runDialog(5);
WebView engine = (WebView) findViewById(R.id.web_engine);
engine.loadUrl("http://android.dsaif.tk/store/");
}
Run Code Online (Sandbox Code Playgroud)
请提供完整的代码修复,因为我是Android开发的新手.谢谢.