Read file content with only one command : Text File Read « File Directory « PHP






Read file content with only one command


<html>
<head>
<title>Tip of the day</title>
</head>

<body>
<center>
<h1>Tip of the day</h1>

<div style = "border-color:green; border-style:groove; border-width:2px">
<?
readfile("tips.txt");
?>
</div>

</center>
</body>
</html>
           
       








Related examples in the same category

1.Read text file into array and output
2.Read text file with format
3.Display XML file
4.Read in and perform operations on a file line by line
5.Read text file into an array in one function
6.Try to open a text file
7.Viewing the Source of a Document