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 | |||
13 | if($result){ |
||
0 ignored issues
–
show
introduced
by
![]() |
|||
14 | echo "Success!"; |
||
15 | }else{ |
||
16 | echo "Oops, error"; |
||
17 | } |
||
18 |