mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Making a better installation
This commit is contained in:
parent
a3daa52f02
commit
7a4fe934ba
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ function check_upload_max_filesize() {
|
||||||
//memory_limit = 100M
|
//memory_limit = 100M
|
||||||
function check_memory_limit() {
|
function check_memory_limit() {
|
||||||
$max_size = parse_size(ini_get('memory_limit'));
|
$max_size = parse_size(ini_get('memory_limit'));
|
||||||
$recomended_size = parse_size('100M');
|
$recomended_size = parse_size('256M');
|
||||||
if ($recomended_size > $max_size) {
|
if ($recomended_size > $max_size) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
@ -354,7 +354,7 @@ function check_memory_limit() {
|
||||||
?>
|
?>
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<span class="glyphicon glyphicon-unchecked"></span>
|
<span class="glyphicon glyphicon-unchecked"></span>
|
||||||
<strong>Your memory_limit is <?php echo ini_get('memory_limit'); ?>, it must be at least 100M</strong>
|
<strong>Your memory_limit is <?php echo ini_get('memory_limit'); ?>, it must be at least 256M</strong>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
Edit the <code>php.ini</code> file
|
Edit the <code>php.ini</code> file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue