Try to open a text file : Text File Read « File Directory « PHP
- PHP
- File Directory
- Text File Read
Try to open a text file
<?php
$openfile ="./test.txt";
$result = fopen ($openfile,"r") or die ("Couldn't open the file");
echo "File opened successfully";
?>
Related examples in the same category