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