Read file content with only one command : Text File Read « File Directory « PHP
- PHP
- File Directory
- Text File Read
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