Issues (14)

Examples/create-file.php (1 issue)

Severity
1
<?php
2
require "../vendor/autoload.php";
3
4
//My text And File name
5
$text = "My Text";
6
$file = "teste2.txt";
7
$url = new \Developers\Dir();
8
9
//Call the method to create the password
10
$result = $url -> FileWrite($file, $text);
11
12
//Print
13
if($result){
0 ignored issues
show
The condition $result is always true.
Loading history...
14
    echo "Success!";
15
}else{
16
    echo "Oops, error";
17
}
18