PHP File Create
Use fopen in write mode . This function will open the file if exist else create that file
Program :
<html>
<head><title>Create File</title></head>
<body>
<?php
$myfile="abc_new.txt";
$fh=fopen($myfile,'w');
if($fh)
echo 'File $myfile created sucessfully !!! ';
else
echo 'Error';
fclose($fh);
?>
</body>
</html>
Program :
<html>
<head><title>Create File</title></head>
<body>
<?php
$myfile="abc_new.txt";
$fh=fopen($myfile,'w');
if($fh)
echo 'File $myfile created sucessfully !!! ';
else
echo 'Error';
fclose($fh);
?>
</body>
</html>
0 comments:
Post a Comment