我希望表的最大行数为100,如果我向该表添加101行,则1行应自动删除.同样我只希望表总行数为100,删除顺序应为FIFO.
有没有直接的MySQL功能呢?
我有一个代码来下载zip文件:
$dl_path = './';
$filename = 'favi.zip';
$file = $dl_path.$filename;
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/zips');
header("Pragma: public");
header("Expires: 0");
header("Cache-Control:must-revalidate, post-check=0, pre-check=0");
header("Content-Type:application/force-download");
header("Content-Type:application/download");
header("Content-Disposition:attachment;filename=$filename ");
header("Content-Transfer-Encoding:binary ");
header('Content-Length: ' . filesize($file));
ob_clean();
flush();
readfile($file);
exit;
}
Run Code Online (Sandbox Code Playgroud)
有根目录/public_html,脚本在根目录下执行.
/目录中有zip文件.
我试图使用$dl_pathas /但它不起作用.
请帮忙.
我有四个按钮,button2作为id.
的document.getElementById( 'BUTTON2')禁用=真.
使用上面的代码,只禁用一个按钮.我想要禁用所有按钮.
有任何想法吗.
谢谢.