1
0
Fork 0
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:
daniel 2017-04-06 11:28:17 -03:00
parent 7a4fe934ba
commit 272e459629

View file

@ -5,6 +5,8 @@ function checkVideosDir(){
$dir = "../videos";
if (file_exists($dir)) {
if(is_writable($dir)){
return true;
}else{
return false;
}
} else {
@ -245,11 +247,11 @@ function check_memory_limit() {
<span class="glyphicon glyphicon-unchecked"></span>
<strong>Your videos directory must be writable</strong>
<details>
If the video directory does not exists create it!
<?php
$dir = getPathToApplication()."videos";
if(!file_exists($dir)){
?>
The video directory does not exists, YouPHPTube had no permition to create it, you must create it manualy!
<br>
<pre><code>sudo mkdir <?php echo $dir; ?></code></pre>
<?php