1<?php
2$directory = "./videos/category/";
3if (!file_exists($directory)) {
4 mkdir($directory, 0777, true);
5}
6?>
1
2<?php
3$filename = '/path/to/foo.txt';
4
5if (file_exists($filename)) {
6 echo "The file $filename exists";
7} else {
8 echo "The file $filename does not exist";
9}
10?>
11
12