📌  相关文章
📜  PHP (WordPress) - 增加最大上传文件大小 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.345000             🧑  作者: Mango

代码示例1
// Increase Maximum Upload File Size
@ini_set( 'upload_max_filesize' , '128M' ); //set this to a value > than your backup
@ini_set( 'post_max_size', '128M'); //set this to a value > than your backup
@ini_set( 'memory_limit', '256M' ); //set this to a value > than your backup
@ini_set( 'max_execution_time', '300' ); //set this to 0 (infinite)
@ini_set( 'max_input_time', '300' );