Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Use fgets() to read a single line from a file
SUBMITTED BY:
henry1874w
DATE:
June 17, 2017, 1:39 p.m.
FORMAT:
Text only
SIZE:
179 Bytes
Raw
Download
Tweet
HITS:
295
Go to comments
Report
<!DOCTYPE html>
<html>
<body>
<?php
$myfile = fopen("webdictionary.txt", "r") or die("Unable to open file!");
echo fgets($myfile);
fclose($myfile);
?>
</body>
</html>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus