Description:
The file "check.txt" should be created in the same directory where this PHP code resides.
PHP will see that "check.txt" does not exist and will create it after running this code.
Code:
<?php
$myfile='check.txt';
$handle = fopen($myfile, "w") or die ('connot open file: '.$myfile);
?>
The file "check.txt" should be created in the same directory where this PHP code resides.
PHP will see that "check.txt" does not exist and will create it after running this code.
Code:
<?php
$myfile='check.txt';
$handle = fopen($myfile, "w") or die ('connot open file: '.$myfile);
?>
No comments:
Post a Comment