Add exams from exam58 to exam98
This commit is contained in:
13
exam82/checkfile.php
Normal file
13
exam82/checkfile.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
$filename = 'file.txt';
|
||||
|
||||
if(file_exists($filename)){
|
||||
echo 'File already exists';
|
||||
} else {
|
||||
$handle = fopen($filename, 'w');
|
||||
fwrite($handle, 'Nothing');
|
||||
fclose($handle);
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user