How do I read all the characters?
Posted: Sat Apr 10, 2004 5:40 pm
How can I read all the bytes in a document with fread() instead of entering a certain number?
Thanks,
Joe
Thanks,
Joe
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$contents = fread($handle, filesize($filename));Code: Select all
<?php
$fp = fopen($filename, "r");
$filecontents = fread($fp, filesize($filename));
?>